LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Add/Remove radio buttons programatically

Dear All,

Is there any way to add/remove radio buttons programatically ?

 

Thanks,

Ritesh

0 Kudos
Message 1 of 5
(4,222 Views)

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"

 

 

0 Kudos
Message 2 of 5
(4,219 Views)

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

0 Kudos
Message 3 of 5
(3,755 Views)

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.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 4 of 5
(3,736 Views)

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

0 Kudos
Message 5 of 5
(3,718 Views)