Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

how to access camera file attributes

I'm attempting to change the shutter speed on my camera by changing to a different attribute from the camera file. I'm using the (IMAQ) function imgSetAttributeString(Sid, "Shutter Speed", "1/2000"). Calling this function this way does not appear to change the settings. It keeps the MAX settings. What is the right way to call this function?
0 Kudos
Message 1 of 4
(3,455 Views)
You might want to try posting your question to the Vision forum as well.

Tony
Measurement Studio
0 Kudos
Message 2 of 4
(3,455 Views)
Hello,
I would suggest referring to the camera attributes for this camera. The camera attributes can be in found in the IMAQ/camera info for the camera or in the camera file for the camera in the IMAQ/data file.

Regards

Russell Blake
Applications Engineering
National Instruments
Director of Engineering
G Systems, www.gsystems.com
Certified LabVIEW Architect
Certified LabVIEW Embedded Systems Developer
Certified Professional Instructor
GCentral
0 Kudos
Message 3 of 4
(3,455 Views)
You need to call the imgSetAttributeString function twice with the following following parameters:

imgSetCameraAttributeString(Sid, "Shutter Control", "Manual");
imgSetCameraAttributeString(Sid, "Shutter Speed", "1/2000");

The order of attributes that need to be called can be determined from the camera file. Attribute names are case sensitive, so they have to be identical to those in the camera file.

Yusuf C.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 4
(3,455 Views)