National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference DIG_Out_Port
NI-DAQ FRM for PC Compatibles 2-182
©
National Instruments Corporation
Using This Function
DIG_Out_Port writes the specified digital data to the port on the specified device.
If the specified port is configurable and you have not configured that port as an output
port, NI-DAQ does not perform the operation and returns an error. You must call
DIG_Prt_Config to make a configurable digital I/O port as an output port. Using
DIG_Out_Port on a port with a combination of input and output lines returns a warning
that some lines are configured for input.
Port 4 of the DIO-32F or DIO 6533 (DIO-32HS) is not a configurable port and does not
require a
DIG_Prt_Config call. On a DIO 6533, however, bits 0 and 2 of port 4 are
unavailable when group 1 is configured for handshaking; bits 1 and 3 are unavailable
when group 2 is configured for handshaking.
Note
If you have connected one or more AMUX-64T boards or an SCXI chassis to your
Am9513-based MIO devices,
DIG_Out_Port returns a badPortError if called
with port equal to 0.