NI-HSDIO LabVIEW VIs

niHSDIO Write Static (U32) VI

  • Updated2023-02-21
  • 4 minute(s) read
Installed With: NI-HSDIO

Writes to channels configured for static generation. You can configure a channel for static generation using the niHSDIO Assign Static Channels VI.

Related Topics

niHSDIO Write Static (U32)

civrn.gif

instrument handle identifies your instrument session. instrument handle is obtained from the niHSDIO Init Acquisition Session VI, the niHSDIO Init Generation Session VI, or the niHSDIO Init Ext Cal VI.

cu32.gif

write data specifies the bit value of data to drive on 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 channel number. For example, a write data value of 0xFF00 sets the lower 8 channels to a logic low level and sets channels 8 to 15 to a logic high level.

Data values in write data corresponding to channels not configured for static generation are ignored.

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

cu32.gif

channel mask (no masking:-1) specifies the bit-value of channels to leave unchanged. 1 means to change the channel to whatever is reflected by write data. 0 means do not alter the channel, regardless of write data.

The least significant bit of channel mask corresponds to the lowest physical channel number. For example, a write data value of 0xFFFF and channel mask of 0x00FF means set only channels 0-7 to 1; all other channels remain unchanged.

cerrcodeclst.gif

error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality.

cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

iivrn.gif

instrument handle out passes a reference to your instrument session to the next VI. instrument handle is obtained from the niHSDIO Init Acquisition Session VI or the niHSDIO Init Generation Session VI.

ierrcodeclst.gif

error out contains error information. This output provides standard error out functionality.

ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.