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.

Note NI-HSDIO returns an error if an event is already routed to a PFI channel and you try to reserve that same channel for static use with this node.

Inputs/Outputs

datatype_icon

session in

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

datatype_icon

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.

datatype_icon

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.

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Default value: No error

datatype_icon

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.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior