LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get acess to the selected radio button boolean text?

Solved!
Go to solution
I tried passing the controls[] reference, but was only able to get the lables and captions.
0 Kudos
Message 1 of 11
(6,395 Views)

Access it from the properties. Have a look at the attached image.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 11
(6,390 Views)

Yes, I know I can create each one of that and make a array of them. But how to it programmly if there's many of them.

 

0 Kudos
Message 3 of 11
(6,387 Views)

This will index the array to the selected value of your radio buttons.

 

Is this what you were looking for?

 

 

 

Message Edited by Chris_VH on 03-31-2009 10:49 AM
Chris Van Horn
Applications Engineer
0 Kudos
Message 4 of 11
(6,372 Views)
That's the way I tried, but only Lable.Text and Caption.Text are available, no Boolean Text.
0 Kudos
Message 5 of 11
(6,368 Views)
Solution
Accepted by topic author lshi
You will need to use the To More Specific Class node to access the 'boolean property' of that control. Before doing this be sure to have a case structure that checks for the class name of the control. Have a look at the attached image to get an idea.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Message 6 of 11
(6,365 Views)

That is exactly what I did, just too late, but it works fine!

 

Message Edited by Chris_VH on 03-31-2009 11:02 AM
Chris Van Horn
Applications Engineer
Message 7 of 11
(6,364 Views)

....

 

mis-read Q.

 

Ben

Message Edited by Ben on 03-31-2009 11:08 AM
Message Edited by Ben on 03-31-2009 11:09 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 8 of 11
(6,345 Views)
Oh yes, that's it. Thank you both for your timingly helpful replies!
0 Kudos
Message 9 of 11
(6,342 Views)

Not exactly, but very close. Don't forget to put a (-1) block between radio buttons and index array.

Controls[] is an array. Index goes from 0 to n-1.

Radio button's index goes from 1 to n. 0 is used for nothing selected.

0 Kudos
Message 10 of 11
(5,692 Views)