National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference DIG_In_Line
©
National Instruments Corporation 2-173 NI-DAQ FRM for PC Compatibles
DIG_In_Line
Format
status = DIG_In_Line (deviceNumber, port, line, state)
Purpose
Returns the digital logic state of the specified digital line in the specified port.
Parameters
Input
Output
Parameter Discussion
port is the digital I/O port number.
Range: 0 or 1 for the AT-AO-6/10, DAQCard-500/700, PC-TIO-10, PC-OPDIO-16,
AO-2DC, Am9513-based, 516 and LPM devices.
0 for the E Series devices, except the AT-MIO-16DE-10.
0 through 2 for the DIO-24 and Lab and 1200 Series devices.
0 and 2 through 4 for the AT-MIO-16DE-10.
0 through 3 for the VXI-AO-48XDC.
0 through 4 for the DIO-32F, DIO 6533 (DIO-32HS), and AT-MIO-16D.
0 through 11 for the DIO-96.
0 through 15 for the VXI-DIO-128.
0 for the PCI-4451 and PCI-4452.
0 through 3 for the PCI-4551 and PCI-4552.
line is the digital line to be read.
Range:0 through k-1, where k is the number of digital I/O lines making up the port.
Name Type Description
deviceNumber i16 assigned by configuration utility
port i16 digital I/O port number
line i16 digital line to be read
Name Type Description
state i16 returns the digital logic state