National Instruments NI-IMAQdx Automobile Accessories User Manual


 
Chapter 2 Basic Acquisition with NI-IMAQdx
NI-IMAQdx User Manual 2-2 ni.com
Both high-level and low-level functions support snap, grab, sequence, and
triggered acquisitions. Using high-level functions, you can write programs
quickly without having to learn the details of the low-level API and driver.
The low-level functions give you finer granularity and control over the
image acquisition process, but you must understand the API and driver in
greater detail to use these functions.
Note The high-level functions call low-level functions and use certain attributes that are
listed in the high-level function description of the NI-IMAQdx Function Reference Help.
Changing the value of these attributes while using low-level functions affects the operation
of the high-level functions.
Acquisition Flow
This section describes the basic steps of performing an acquisition with the
NI-IMAQdx software. The basic steps are initialization, configuration, and
acquisition.
Opening a Camera
To acquire images using the high-level or low-level functions, you first
must open a camera session. A camera session is a process-safe handle to
a camera. The driver uses a camera session to identify the camera to which
further NI-IMAQdx functions apply. You can simultaneously open as many
camera sessions as there are cameras connected to your system.
When opening the camera session, you need to specify two parameters:
camera name and camera control mode. Refer to the following sections for
detailed information about these parameters. When an application is
finished with the camera, call the Close Camera function to close the
camera session.