10-13-2008 08:37 AM
Dear All,
Is there any way to add/remove radio buttons programatically ?
Thanks,
Ritesh
10-13-2008 08:44 AM
Hi,
if your VI is running, you can't modify it
but it is possible to hide and display controls or indicators programmaticaly with the Property Node "Visible"
09-08-2015 06:04 AM
hi. this was my problem too. i just want to automatically add/remove some buttons in radio buttons in my interface by clicking (add button or remove button).can you help me how please. thanks
09-08-2015 06:49 AM
You cannot dynamically create controls/indicators while a VI is running. The closest solution is to create more buttons than you might need and then show/hide them as necessary.
You could also look at using a multi-column listbox which allows you to have a checkbox next to each item and you can handle the click events to enable/disable the items.
09-08-2015 09:45 AM - edited 09-08-2015 09:45 AM
As others have said you can't edit a VI while it is running, but you can use other UI controls that might work just as well. If you go with a listbox you can add or remove as many as you want when you are running, and using the settings you can force the selection to be just one item, which works similar to a radio control. For multi selection you could use something like this:
https://decibel.ni.com/content/docs/DOC-42155
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord