Chapter 2 Function Reference — DIG_In_Port
NI-DAQ FRM for PC Compatibles 2-176
©
National Instruments Corporation
four bits wide, only bits 0 through 3 of pattern reflect the digital state of these ports, while
NI-DAQ sets all other bits of pattern to 0.
Note C Programmers—pattern is a pass-by-reference parameter.
Using This Function
DIG_In_Port reads digital data from the port on the specified device. If the port is
configured as an input port, reading that port returns the digital logic state of the lines as some
external device is driving them. If the port is configured as an output port and has read-back
capability, reading the port returns the output state of that port, along with a warning that
NI-DAQ has read an output port.