11-01-2006 04:57 PM
11-02-2006 07:58 AM
Hi LKeene,
I don't have a solution for your specific problem, but i know that when using absolute shutter value, you must give a value that is accepted by your camera.
Did you try to set the same value in Max to your camera?
11-02-2006 10:05 AM
Hi Doc-doc,
I'm going to switch over to relative shutter mode instead. It seems to be easier to use and I've confirmed it works. Thanks for the help!
11-02-2006 03:06 PM
11-03-2006 02:45 AM
Why don't you like relative mode ? do you need to change camera types for the same software ?
If so, the user can understand that the settings require to be different fot each brand of camera...
Cheers
11-03-2006
10:56 AM
- last edited on
07-09-2025
10:09 AM
by
Content Cleaner
LKeene
The trick to setting absolute values is passing the double value by reference.
NI-IMAQ for IEEE 1394 Example
double myShutterSpeed = 0.04; // 40 ms shutter speed
// change from relative to absolute mode
imaq1394SetAttribute(session, IMG1394_ATTR_SHUTTER, IMG1394_ABSOLUTEMODE);
// set absolute value
imaq1394SetAttribute(session, IMG1394_ATTR_ABSOLUTE_SHUTTER, (uInt32)&myShutterSpeed);
Assuming the camera supports absolute shutter, you should now be using it.
Please note that setting absolute values have been improved with NI-IMAQdx 3.0. NI-IMAQdx is part of Vision Acquisition Software 8.2.1. NI-IMAQdx introduce variable argument list with type specifiers to remove the confusion. With variable arguments, you may pass parameters by value with type casting.
NI-IMAQdx Example:
// change mode from relative to absolute
IMAQdxSetAttribute(session, "Shutter::Mode", IMAQdxValueTypeString, "Absolute");
// set absolute value
IMAQdxSetAttribute(session, "Shutter::Value", IMAQdxValueTypeF64, 0.04); // note that double value is passed by value as part of variable argument list
Hope this helps,
Johann S
11-06-2006 10:33 AM
11-06-2006 02:39 PM
Here's how to make it work:
double shutterTime = 2.0; //Seconds, for example.
int errorCode; //To check error code returned.
//Change camera mode to absolute shutter:
errorCode = imaq1394SetAttribute(sessionID, IMG1394_ATTR_SHUTTER, IMG1394_ABSOLUTEMODE);
//Change absolute shutter time:
errorCode = imaq1394SetAttribute(sessionID, IMG1394_ATTR_ABSOLUTE_SHUTTER, (unsigned long)&shutterTime);