LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get selected Enum from a radio button

I have 32 radio buttons with 3 selections. It could save me a lot of work if I could use one case with all events and select what I want with a case structure that takes the enum value out of CtlRef of the event structure

0 Kudos
Message 11 of 14
(539 Views)

If all your radio buttons used the exact same enum, you wouldn't have a variant at the Value node, you would have the actual enum. 

 

And if that's the case, if they're not all the same enum, then a case structure extracting the value won't be trivial either.

 

If 30 of them say "good","bad", and "ok"; and 2 of them say something else, then you can put the 30 in one event case and the 2 in the other. Not necessarily suggesting this as your solution, just noting that this would be how you would get strict references there.

 

Spoiler
FireFistRedhawk_0-1636474285221.png
Redhawk
Test Engineer at Moog Inc.

Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.

0 Kudos
Message 12 of 14
(537 Views)

here it is: One of all those radio buttons had accidentally a wrong enum

 

Problem solved, something new learned!

 

Thanks everyone involved for your time.

cheers from Switzerland.

0 Kudos
Message 13 of 14
(532 Views)

Type Def your radio button and that'll never bite you again.

Redhawk
Test Engineer at Moog Inc.

Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.

Message 14 of 14
(529 Views)