National Instruments NI-IMAQdx Automobile Accessories User Manual


 
© National Instruments Corporation 3-1 NI-IMAQdx User Manual
3
Advanced Programming with
NI-IMAQdx
This chapter contains information about setting camera attributes,
broadcasting acquired images to multiple machines, using scale to define
the size of transferred images, and triggering.
Camera Attributes
After opening a camera, configure the camera attributes by specifying
the following parameters: the attribute name, the attribute type, and the
attribute value. Specify the same attributes when querying the camera
attributes.
Use the Set Attribute function to set an attribute value. Use the Get
Attribute function to get an attribute value.
Note To configure your camera in LabVIEW, use the IMAQdx Property Node.
The driver returns an error if an attribute is not accessible. Query the
attribute access before accessing an attribute. When setting an attribute, the
driver returns an error if the value is out of range. Query the attribute range
before setting an attribute.
Attribute Name
The attribute name is a string constant. Each camera has a different
set of attributes. Use the Enumerate Attributes function to list all
available attributes for a given camera. The attribute name contains
several keywords separated by a double colon namespace marker.
AcquisitionAttributes::Timeout and AcquisitionAttributes::Bayer::Pattern
are two examples of attribute names.
The namespace marker separates different levels in the attribute tree as
described by the driver and the camera. Use the fully qualified attribute
name such as AcquisitionAttributes::Timeout, or use the short version of
the attribute name such as Timeout, when specifying the attribute name.