National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference DIG_Prt_Status
NI-DAQ FRM for PC Compatibles 2-186
©
National Instruments Corporation
DIG_Prt_Status
Format
status = DIG_Prt_Status (deviceNumber, port, handshakeStatus)
Purpose
Returns a status word indicating the handshake status of the specified port.
Parameters
Input
Output
Parameter Discussion
port is the digital I/O port number.
Range: 0 or 1 for the DIO-24 and Lab and 1200 Series devices.
2 or 3 for the AT-MIO-16D and AT-MIO-16DE-10.
0, 1, 3, 4, 6, 7, 9, and 10 for the DIO-96.
handshakeStatus returns the handshake status of the port.
0: A port is not available for reading from an input port or writing to an output port.
1: A unidirectional port is available for reading from an input port or writing to an
output port.
2: A bidirectional port is ready for reading.
3: A bidirectional port is ready for writing.
4: A bidirectional port is ready for reading and writing.
Note
C Programmers—handshakeStatus is a pass-by-reference parameter.
Name Type Description
deviceNumber i16 assigned by configuration utility
port i16 digital I/O port number
Name Type Description
handshakeStatus i16 handshake status