Write Static PFI (U32)
- Updated2023-02-17
- 3 minute(s) read
Write Static PFI (U32)
Writes data to PFI channels configured for static generation.
You can configure a channel for static generation using the Assign Static Channelsnode.
Inputs/Outputs

session in
Instrument session obtained from the Initialize Acquisition Sessionnode, the Initialize Generation Sessionnode, or the Initialize External Calibrationnode.

write data
The bit value of data to drive on PFI channels configured for static generation. 1 corresponds to logic high level, 0 corresponds to logic low level.
The least significant bit of write data corresponds to the lowest physical PFI channel number. For example, a write data value of 0xFF00 sets PFI0 through PFI7 to logic 0 and sets PFI8 through PFI 15 to logic 1.
Data values in write data that correspond to channels that are not configured for static generation are ignored.
Default value: 0
Disabling static channels with niHSDIO Tristate Channels
Static channels explicitly disabled with the niHSDIO Tristate Channelsnode remain disabled, but the channel data value changes internally. Re-enabling a channel with the niHSDIO Tristate Channelsnode causes the channel to drive any value that you have written to it, even while the channel was disabled.

channel mask
The bit-value of the PFI channels to leave unchanged.
| 0 | Do not alter the PFI channel, regardless of write data |
| 1 | Change the PFI channel to whatever is reflected by write data |
The least significant bit of channel mask corresponds to the lowest physical PFI channel number. For example, a write data value of 0xFFFF and channel mask of 0x00FF means set only PFI0 through PFI7 to logic 1; all other PFI channels remain unchanged.

error in
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Default value: No error

session out
Handle that identifies the session in all subsequent node calls.
The session out parameter is obtained from the Initialize Acquisition Sessionnode or the Initialize Generation Sessionnode.

error out
Error information.
The node produces this output according to standard error behavior.