11-29-2006 05:38 PM - edited 11-29-2006 05:38 PM
Message Edited by lanmat on 11-29-2006 05:48 PM
12-01-2006 01:28 PM
lanmat
The available enumerations for any attribute (including Shutter Mode) is dynamically determined by the driver. Only the enumerations that is supported by the attribute is returned to the user. The available enumerations for the Shutter::Mode attribute is
FeatureMode = {
Relative = 0,
Absolute = 1,
Off = 2,
Auto = 3,
OnePush = 4,
Ignored = 5,
};
That means that the driver determined that your camera does not support the Off shutter mode. I agree that the ordering is confusing, but the intent is to dynamically populate a control in LabVIEW with the available enumerations and set the attribute from the selected values. See the attached VI for a simple example. Also see shipping Grab and Attributes Setup.vi example for a complete example.
I assume you want an enum in order to quickly hard-code a value in your application. The danger is that if you do hard-code a value and you change cameras, then the value might suddenly be invalid. If you can ensure that the camera is not going to change, then its safe to hard-code a constant integer or string value.
Hope this helps,
JohannS
12-01-2006 02:01 PM
12-01-2006 02:36 PM
12-01-2006 02:44 PM
You are teasing me here Johann.
Lanmat's issue was with the SPARSE ENUM.
We have been waiting and watching for the first sign that sparse enums can be created in LV.
Your example just populates a ring. Bummer
Still waiting and hoping,
Ben
12-01-2006 03:09 PM
Ben
How about this example? It is a ring with a non-sequential list of enumerated values.
Johann