National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference DIG_Prt_Status
©
National Instruments Corporation 2-187 NI-DAQ FRM for PC Compatibles
Using This Function
DIG_Prt_Status reads the handshake status of the specified port and returns the port status
in handshakeStatus.
DIG_Prt_Status, along with DIG_Out_Port and DIG_In_Port,
facilitates handshaking of digital data between systems. If the specified port is configured
as an input port,
DIG_Prt_Status indicates when to call DIG_In_Port to fetch the data
that an external device has latched in. If the specified port is configured as an output port,
DIG_Prt_Status indicates when to call DIG_Out_Port to write the next piece of data to
the external device. If the specified port is not configured for handshaking, NI-DAQ returns
an error code and handshakeStatus =0.
Refer to your device user manual for handshake timing information. If the port is configured
for input handshaking, handshakeStatus corresponds to the state of the IBF bit. If the port
is configured for output handshaking, handshakeStatus corresponds to the state of the
OBF* bit.
Note
You must call DIG_Prt_Config to configure a port for data direction and
handshaking operation.