LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change selected item from enum

Hi,

 

i have a simple setup menu where I can choose different settings for devices and save them to a file (string to file).

 

Now I want to have an option to load the settings from files and display them in the setup menu (overwrite the indicators etc. with the values from file).

 

Can you explain an easy way to select a item from an enum depending on the string which i read from file? (i don't want to write a new item into the enum, just select an existing one)

 

Greetings!

 

(see file attached)

0 Kudos
Message 1 of 2
(2,682 Views)

You are looking for this:

SetEnumValueByString.PNG

 

The function is the "Scan From String" found on the string palette.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 2
(2,662 Views)