06-30-2014 09:03 AM
Hi,
I'm using a gigE camera. I'm trying to control all the features in the camera.
When I open the xml beloning to the camera I see a certain feature, in this example SynchronizationMode.
<Enumeration Name="SynchronizationMode" NameSpace="Standard">
<ToolTip>None</ToolTip>
<DisplayName>Synchronization Mode</DisplayName>
<ImposedAccessMode>RW</ImposedAccessMode>
<Streamable>Yes</Streamable>
<EnumEntry Name="FreeRunning">
<DisplayName>Free Running </DisplayName>
<Value>0x040</Value>
</EnumEntry>
<EnumEntry Name="ExtTrigger">
<DisplayName>Triggered </DisplayName>
<Value>0x849</Value>
</EnumEntry>
<EnumEntry Name="Snapshot">
<DisplayName>Snapshot </DisplayName>
<Value>0x859</Value>
</EnumEntry>
<pValue>SynchronizationModeReg</pValue>
</Enumeration>
I can use a property node, ActiveAttribute - Value to set or get its value.
I also tried EnumStrings[], same result
But I only can get the display name, what i'm looking for is the EnumEntry Name.
The DisplayName is changing from time to time, the EnumEntry Name always stays the same.
I want to change my code as less as possible.
So in the pink part in the example above I would like to get the string "FreeRunning" iso "Free Running"
Any ideas???
06-30-2014 09:23 AM
Cant you use the Value property to get the Enum-value instead?
/Y
06-30-2014 09:26 AM
The value property gives me the same "Free Running" as you can see in the screenshot I added.
Thanks