NI-HSDIO LabVIEW VIs

Table of Contents

niHSDIO Read Static PFI (U32) VI

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

Immediately reads all PFI channels configured for static acquisition. The least significant bit of read data corresponds to the lowest physical PFI channel number.

You can configure a channel for static acquisition using the niHSDIO Assign Static Channels VI. Channels not configured for static acquisition return a zero. Channels that do not exist on the hardware also return a zero.

Values obtained from static read operations are affected by the data interpretation parameter of the niHSDIO Configure Data Interpretation VI.

Related Topics

niHSDIO Read Static PFI (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.

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.

iu32.gif

read data returns the bit value of data read from PFI channels configured for static acquisition.

The least significant bit of read data corresponds to the lowest physical channel number. For example, bit 0 corresponds to PFI0, and bit 31 corresponds to PFI31, if that channel exists on the hardware.

If read data returns a value of 0x000F, channels PFI0 to PFI3 are logic one and the remaining channels are logic zero or are not configured for static acquisition.

If read data returns a value of 0xFFF0, channels PFI4 to PFI15 are logic one and the remaining channels are logic zero or are not configured for static acquisition.

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.

Log in to get a better experience