National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference DIG_Line_Config
©
National Instruments Corporation 2-177 NI-DAQ FRM for PC Compatibles
DIG_Line_Config
Format
status = DIG_Line_Config (deviceNumber, port, line, dir)
Purpose
Configures a specific line on a port for direction (input or output).
Parameters
Input
Parameter Discussion
port is the digital I/O port number.
Range: 0 for the E Series devices.
0 through 1 for the PC-TIO-10.
0 through 3 for the DIO 6533 (DIO-32HS) and the VXI-AO-48XDC.
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 for which to configure.
Range: 0 through 7.
dir indicates the direction, input or output, to which the line is to be configured.
0: Line is configured as an input line (default).
1: Line is configured as an output line.
3: Line is configured as an output line with a wired-OR (open collector) driver
(DIO 6533 only).
Using This Function
With this function, a PC-TIO-10, DIO 6533, VXI-AO-48XDC, E Series, or DSA port can
have any combination of input and output lines. Use
DIG_Prt_Config to set all lines on
the port to be either all input or all output lines.
Name Type Description
deviceNumber i16 assigned by configuration utility
port i16 digital I/O port number
line i16 digital line
dir i16 direction, input, or output