LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

access Radio button control

My front panel contains several radio button control (e.g. Radio1 woth the buttons B1, B2 B3)

How can I access the property of a button of one of those radio controls by filtering it out of the property knode "Pane". I want to get a property knode B1.disable = true.

0 Kudos
Message 1 of 3
(221 Views)

Hello Robert,

 

Hope this would help.

 

PinguX_0-1718712535959.png

 

0 Kudos
Message 2 of 3
(214 Views)

In case the code is in the same VI as the Radio Buttons Control, you can simply do this (right-click e.g. on B1 > Create > Property Node):

 

raphschru_3-1718715311276.png

 

 

In case you want the code to be dynamic and work on another VI's front panel, you can do something like this:

raphschru_1-1718715135480.png

 

Note: the Traverse function can be found on your palette (Application Control > VI Scripting) only if you enable scripting (Tools > Options > VI Server > VI Scripting > Show VI Scripting functions...). Inspecting the front panel using this technique will also work in an executable as soon as the front panel of the targeted VI is kept in the build.

 

Regards,

Raphaël.

0 Kudos
Message 3 of 3
(206 Views)