LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GigE camera property node

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???

 

0 Kudos
Message 1 of 3
(2,389 Views)

Cant you use the Value property to get the Enum-value instead?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 3
(2,378 Views)

The value property gives me the same "Free Running" as you can see in the screenshot I added.

 

Thanks

0 Kudos
Message 3 of 3
(2,376 Views)