LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using enumerated data types?

I have an array of enumerated datatypes which is the output from a database. I have selected that the enumerated data be Strings. Why can't I loop through the array and store the string in a string array?
0 Kudos
Message 1 of 2
(2,676 Views)
Hello,

Try to run the array of enumerated through a for loop,you can get the string for the current value of the control by wiring it to a Format Into String VI and specifying the format to be string (%s) and get the array of current value out of the for loop.
If you want all strings values contained in the enum, run the array trough a for loop,create an indicator for the enum element , create a property node for this enum with strings[] property and you will get a an array of strings out of the for loop.

Regards,

Cyril Bouton
Applications Engineer
National Instruments.
Cyril Bouton
Active LabVIEW Developper
Message 2 of 2
(2,676 Views)