User manual

Chapter 3 Software Overview
NI-DAQ User Manual for PC Compatibles 3-66 ni.com
Figure 3-22 is a flowchart outlining the basic line I/O application.
Figure 3-22. Basic Line Input or Output Application
First, configure the digital lines for input or output. You can program
653X devices, PC-TIO-10, PCI-6703, PCI-6704, PXI-6703, PXI-6704,
622X, 671X, and E Series devices on an individual line basis. To do
this, call
DIG_Line_Config
. You must configure all other devices on
a port-by-port basis. As a result, you must configure all lines within a port
for the same direction. Call
DIG_Prt_Config
to configure a port for input
or output. For the 652X devices it is not necessary to configure a port or
line since the line direction is preconfigured.
The next step is to call
DIG_In_Line
or
DIG_Out_Line
to output or input
a bit from or to the line. The final step is to loop back until NI-DAQ has
transferred all of the data.
Done?
DIG_Out_Line
DIG_Line_Config
DIG_Prt_Config
Output data to line.
Configure ports for
input or output.
Configure lines for input or output.
Input data from line.
DIG_In_Line
Yes
No
Yes
No
TIO, DSA, 62
XX,
652
X,
PCI/PXI–6703/6704, DIO 6533 (DIO-32HS),
VXI-AO-48XDC, or E Series
device?