National Instruments NI-IMAQdx Automobile Accessories User Manual


 
Chapter 2 Basic Acquisition with NI-IMAQdx
NI-IMAQdx User Manual 2-14 ni.com
Sequence
The low-level sequence examples demonstrate how to perform a sequence
acquisition using low-level calls. The program sets up a one-shot,
multi-image acquisition and starts the acquisition. The main loop iterates
once for each internal buffer. In the main processing loop, the program
acquires an image and processes it. After the loop, the program stops the
acquisition, unconfigures the acquisition, and closes the session.
Figure 2-7 illustrates the programming order of a low-level sequence
acquisition.
Figure 2-7. Low-Level Sequence Flowchart
Opens and configures camera
Starts transferring data from camera
to host computer
Executes user-specific image
processing
Stops transferring data from camera
to host computer
Configures a single-shot
multiple-buffer acquisition
Closes the camera session
Frees resources used by the acquisition
Copies and decodes buffer number
i
, where
i
is between 0 and (
n
– 1)
(Loop)
Loop
n
times
Open
Configure
Start
Acquire
User-Specific Functions
Stop
Unconfigure
Close