User manual

Chapter 3 Software Overview
NI-DAQ User Manual for PC Compatibles 3-62 ni.com
F
Figure 3-19. Basic Digital Filtering of Input Data Application
The first step is to call
DIG_Filter_Config
, which enables filtering
on the specified lines. Next, you can configure either the ports or the lines.
For the 652X devices, configuring the ports by calling
DIG_Prt_Config
is optional, because the ports have fixed directions.
DIG_Line_Config
is also optional because the lines within the ports have fixed directions.
Thenextstepistocall
DIG_In_Port
to read data from an input port.
Call
DIG_In_Line
to read a bit from a line. The final step is to loop back
if more data is to be read.
Digital I/O Application Tips
This section gives a basic explanation of how to construct an application
using the digital input and output functions. The flowcharts are a quick
reference for constructing potential applications from the NI-DAQ
function calls.
Enable filtering?
Yes
No
Configure lines for input
Done?
DIG_Line_Config
(Optional on 652
X
devices)
Configure ports for input
DIG_Prt_Config
DIG_In_Line
DIG_In_Prt
DIG_Filter_Config