Справочник Пользователя для National Instruments Image Acqusition Software NI-IMAQdx

Скачать
Страница из 65
Chapter 4
Using NI-IMAQdx in LabVIEW
4-3
ni.com
Acquisition VIs
Two types of acquisition VIs are available in LabVIEW: high-level and 
low-level.
High-Level
Use the high-level acquisition VIs for basic image acquisition applications. 
VIs are included for snap, grab, and sequence, as described in the 
 section of this chapter. 
Low-Level
Use the low-level acquisition VIs for more advanced image acquisition 
applications. The low-level VIs configure an acquisition, start an 
acquisition, retrieve the acquired images, and stop an acquisition. You
can use these VIs to construct advanced Vision applications.
Complete the following general steps to perform a low-level acquisition.
1.
Call IMAQdx Open Camera to initialize the board and create an 
IMAQdx Session.
2.
Call IMAQdx Configure Acquisition to allocate resources for the 
acquisition.
3.
Call IMAQdx Start Acquisition to start transferring data from the 
camera.
4.
Call IMAQdx Get Image to obtain a copy of the requested image data.
5.
After an acquisition, call IMAQdx Stop Acquisition to stop 
transferring data from the camera.
6.
Call IMAQdx Unconfigure Acquisition to release the resources 
associated with the acquisition.
7.
Call IMAQdx Close Camera to close the camera session.
Note
If an acquisition is in progress and you call IMAQdx Close Camera, the driver 
automatically stops the acquisition and releases resources associated with the acquisition.