From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

enum to string

Solved!
Go to solution

Hi folks,

 

How to convert Radio button enums to String ?

Because there is no string[] property node and ring text as well.

 

Thanks in advance!!!

 

With regards,

Shree

 

 

0 Kudos
Message 31 of 34
(1,246 Views)

Format Into String works for me.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 32 of 34
(1,240 Views)

If you're talking about a single value, the Format Into String function works.

 

If you want to get all of the Labels of the Radio Selections, you can loop through the Controls[] property and grab the Label.Text for each control.

0 Kudos
Message 33 of 34
(1,238 Views)

There's also an OpenG function called Get Strings From Enum, under the LabVIEW data palette, which will return the string value of an enum, and all possible values as an array of string.  This works without references, and works on RT.

0 Kudos
Message 34 of 34
(1,201 Views)