LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing radio button property node

I want to access the individual captions of each radio button.  I want to be able to let the user change the text property of each button, not the label, while the vi is running.  I could not find the property that does this in the property node.  Can this be done?
 
Thanks in advance.
Ron Deavers, CLD
0 Kudos
Message 1 of 7
(4,404 Views)
Wire the
Controls[] property into a for loop and into a To More Specific Class. You need to create a constant for the class specifier and select Boolean as the class. This will cast the references of the controls to the Boolean class and give you access to the boolean properties, including Strings[4], which I think is the one you want.

___________________
Try to take over the world!
Message 2 of 7
(4,397 Views)
... or create a property node for each button and write to the "caption" property?
 
 
BTW, I don't think captions can be changed on strict-typedefs!
 
 
 

Message Edited by Dynamik on 12-11-2005 03:11 AM

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 3 of 7
(4,384 Views)
I appreciate the help.  I did not know that I could create a property node from the front panel.  I ended up using the Strings[4] property.  The first string in this array changes the Boolean text of the button.  Does anyone know what the other strings in this array correspond to?
Ron Deavers, CLD
0 Kudos
Message 4 of 7
(4,364 Views)
I was able to use the Caption.Text property to change my caption.  It only works for my first radio button.  When I try to use it for another radio button in the same button array, I get an Error 1320.  It says " In edit mode, LabVIEW cannot return a property for a control part that you have not yet created."  How do I 'create' it then?
Ron Deavers, CLD
0 Kudos
Message 5 of 7
(4,354 Views)


@programmindragon wrote:
.... Does anyone know what the other strings in this array correspond to?


1. The help for the 'Strings [4]' property explains what the strings correspond to.

2. Your problem with the caption(s) for the buttons other than the first will go away if you manually make each button's caption visible the change it back to invisible.  The problem has been discussed several times since LV7.1 came out (e.g. here)

=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 6 of 7
(4,340 Views)
Thanks, tst. I needed this just now for a project of my own.

Lynn
0 Kudos
Message 7 of 7
(4,336 Views)