Table Of Contents

Write Static PFI (U32) (G Dataflow)

Version:
Last Modified: September 27, 2017

Writes data to PFI channels configured for static generation.

You can configure a channel for static generation using the Assign Static Channels node.

spd-note-note
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.

connector_pane_image
datatype_icon

session in

Instrument session obtained from the Initialize Acquisition Session node, the Initialize Generation Session node, or the Initialize External Calibration node.

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.

Disabling static channels with niHSDIO Tristate Channels

Static channels explicitly disabled with the niHSDIO Tristate Channels node remain disabled, but the channel data value changes internally. Re-enabling a channel with the niHSDIO Tristate Channels node causes the channel to drive any value that you have written to it, even while the channel was disabled.

Default: 0

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

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: 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 Session node or the Initialize Generation Session node.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics