Camera Attributes

NI IMAQ

Camera Attributes

Camera attributes allow you to control camera-specific functions, such as integration time and pixel binning. You can access the camera attributes using CWIMAQ.CameraAttribute. You also can set them in MAX. Information about specific attributes for some cameras is contained in a camera attribute file <my camera>.txt, which is in the <NI-IMAQ>/Camera Info directory, where <NI-IMAQ> is the location to which NI-IMAQ is installed.

Note  Camera attribute files are not available for every camera.

The camera attribute file lists all attributes for the camera where each attribute description contains four fields: Attribute Name, Description, Data Type, and Possible Values. The Attribute Name field contains the name of the attribute in quotation marks. Pass the value of this field to the Attribute parameter of the CameraAttribute property.

The Data Type field contains the data type of the attribute, which can be String, Integer, or Float. String indicates that possible values are listed in quotes in the Possible Values section. To set the value of a String attribute, set the appropriate string value for the CameraAttribute.

Note  The spelling and syntax of the Attribute Name and string values must match the camera attribute file exactly.