National Instruments PC-OPDIO-16 Telescope User Manual


 
Chapter 6 NI-DAQ Function Reference
© National Instruments Corporation 6-7 PC-OPDIO-16 User Manual
DIG_Out_Line
Format
status = DIG_Out_Line (deviceNumber, port, line, state)
Purpose
Sets or clears the specified digital output line in the specified digital port.
Parameters
Direction Name Type Description
Input deviceNumber I16 assigned by configuration utility
port I16 digital I/O port number
line I16 digital output line
state I16 new digital logic state
Parameter Discussion
port is the digital I/O port number.
Range: 0 through 1
Port A = 0
Port B = 1
Note: You will normally use output port A with this function.
line is the digital output line to be written to.
Range: 0 through 7
state contains the new digital logic state of the specified line.
0: The specified digital line is set to digital logic low.
1: The specified digital line is set to digital logic high.
Using This Function
DIG_Out_Line sets the digital line in the specified port to the specified state. The remaining
digital output lines making up the port are not affected by this call. If you have not configured
the port as an output port, NI-DAQ does not perform the operation and returns an error. You
must call DIG_Prt_Config to configure a digital I/O port as an output port.