IMAQdx -- how do I set the camera mode?
In C++. I've dumped the modes and I want #95 (this is part of the list):
Video mode[94] is 320 x 240 JPEG 20.00 fps = 94
Video mode[95] is 320 x 240 JPEG 15.00 fps = 95
Video mode[96] is 320 x 240 JPEG 10.00 fps = 96
can one of the NI guys tell me how to form the proper IMAQdxSetAttribute call to get that mode? I'm thinking I pass in IMAQdxAttributeVideoMode (uisitionAttributes::VideoMode"), but what's the IMAQdxValueType? IMAQdxValueTypeU32? and I just pass a 95?
I'm still experimenting, but if one of you is online..
When I enumerate the attributes, I get:
attr[38] is AcquisitionAttributes::VideoMode, type 4, writeable 0, value=0
Should I be worried about the Writable being zero? Does that mean I can't change video modes by writing to this attribute (.h file says its "get/set").
But does type 4 mean I set it as a character string and not an integer?
|