LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Autogenerate an enum

Hi!

My goal is to create a Type Descriptor from an autogenerated enum. The result should be the same as when you have an enum already created in the VI and wire it to a Flatten To String VI and you get the the Type Descriptor from the Type String connector.
The problem in my case is that the enum has to be created in runtime. What I have is an array of strings, i.e:
val1 0x00
val2 0x01 etc
which I would like to turn in to an enum and then get the Type Descriptor as described abowe.

Is there an easy way to create an enum by type cast an array or do I have to dig myself into the reference manual to do the conversion totally manually from the array.

Happy for help.

Best regards, ezon.
0 Kudos
Message 1 of 2
(2,670 Views)
I don't think you can create an enum at runtime. You can write to the strings property only in the edit mode.

You can modify the strings of ring controls at runtime.

Lynn
0 Kudos
Message 2 of 2
(2,670 Views)