See the information below to programmatically set your camera attributes in LabVIEW and in text-based languages.
Note: Some attributes can not be set while acquiring, for example, the width and height of the image. You can use the following code to identify what functions are writable before and while acquiring.
The IMAQdx Configure Grab.vi configures and starts a grab acquisition so if you try to set a non-writable property while acquiring, then you will receive an error.
Use the IMAQdxGetAttribute function call to get a particular attribute value or setting. If you are unsure of the exact name or value of an attribute, you can call IMAQdxEnumerateAttributes2 and IMAQdxEnumerateAttributeValues to return this data.If you do not know in advance the number of attribute values that are available, you can get this information by completing these steps:
You can do the same steps for IMAQdxEnumerateAttributeValues by setting the list parameter to NULL, which stores the necessary size in size. For more information regarding the use of these functions and other IMAQdx functions for text-based languages, please refer to the NI-IMAQdx Function Reference Help found under National Instruments\NI-IMAQdx\Docs.
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.