LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you extract the text string from a enumerator control?

I would like extract the text string from an enumerator control. Normally, the control output of the enumerator control is a number in the diagram, but it displays this number as text string in the front panel.
0 Kudos
Message 1 of 4
(3,142 Views)
This is done using a property node and an index into the array of strings that you can get from the property node. I have created a small VI (attached) that does just that as an example.

Rob
0 Kudos
Message 2 of 4
(3,142 Views)
You can use a property node on the enum to extract an array of all the text strings or just the selected. How are you getting the digital number as a text string? Are you using the property "DigitalDisplay.Text"?

See the attached example.

Tim
Message 3 of 4
(3,142 Views)
The easiest way to do this to connect the enum to a format into string input and have a %s connected as the formatting string input.
No properties involved.
greetings from the Netherlands
Message 4 of 4
(3,142 Views)