National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference DIG_Out_Port
©
National Instruments Corporation 2-181 NI-DAQ FRM for PC Compatibles
DIG_Out_Port
Format
status = DIG_Out_Port (deviceNumber, port, pattern)
Purpose
Writes digital output data to the specified digital port.
Parameters
Input
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,
516 devices, AO-2DC, Am9513-based MIO devices, 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.
8 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.
pattern is the 8-bit digital pattern for the data written to the specified port. NI-DAQ ignores
the high eight bits of pattern. NI-DAQ maps the low eight bits of pattern to the digital output
lines making up the port so that bit 0, the least significant bit, corresponds to digital output
line 0. If the port is less than eight bits wide, fewer than eight pattern bits affect the port, or
some of the bits are not configured for port outport. For example, because ports 0 and 1 on
the Am9513-based boards are four bits wide, only bits 0 through 3 of pattern affect the digital
output state of these ports.
Name Type Description
deviceNumber i16 assigned by configuration utility
port i16 digital I/O port number
pattern i16 8-bit digital pattern for the data written