National Instruments Image Acqusition Software NI-IMAQdx Manual De Usuario

Descargar
Página de 65
Chapter 2
Basic Acquisition with NI-IMAQdx
© National Instruments Corporation
2-13
Grab
The low-level grab examples demonstrate how to perform a grab 
acquisition using low-level function calls. The program sets up a 
continuous acquisition into three internal buffers and starts the acquisition. 
The main loop iterates continuously. 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-6 illustrates the programming order of a low-level grab 
acquisition.
Figure 2-6.  Low-Level Grab 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 continuous
multiple-buffer acquisition
Closes the camera session
Frees resources used by the acquisition
Copies and decodes next buffer
number
(Loop)
Loop until stopped
Open
Configure
Start
Acquire
User-Specific Functions
Stop
Unconfigure
Close