06-18-2024 07:00 AM
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.
06-18-2024 07:09 AM
Hello Robert,
Hope this would help.
06-18-2024 07:31 AM - edited 06-18-2024 07:57 AM
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):
In case you want the code to be dynamic and work on another VI's front panel, you can do something like this:
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.