ni.com is currently experiencing unexpected issues.
Some services may be unavailable at this time.
05-11-2009 07:41 AM
Good afternoon,
I am using LabVIEW 8.6.1 and I used three booleans in a vi. What I want is: when one of them is on the other two to be disabled, and of course when all are off all to be enabled.
Can someboby help me with this.
Thank you in advance
Solved! Go to Solution.
05-11-2009 07:47 AM
Hi thorfano,
where do you have problems?
Use an event structure to react on the value change event. Get the references of all your controls and build an array with the enabled/disabled states. Change the states with the value change event. You can store the states in an array and run through a loop after every event.
Mike
05-11-2009 07:56 AM
05-11-2009 07:56 AM - edited 05-11-2009 07:57 AM
This code should do the trick! It's simple enough not to have to attach the actual code for it. At the moment, when the controls are disabled, they're grayed out but still visible. If you want them to disappear completely when disabled, just remove the three 'multiply by 2' sections and wire the numbers straight to the property nodes.
05-11-2009
07:56 AM
- last edited on
07-21-2025
04:28 PM
by
Content Cleaner
Are you tring to impliment a "Radio Button" style input where only one can be selected at a time?
Try a Radio Button
https://www.ni.com/docs/en-US/bundle/labview/page/creating-a-radio-buttons-control.html
05-11-2009 08:07 AM
05-11-2009 08:14 AM
Thanks a lot. It's nice to have alternatives, and Omar thanks for the suggestion, however in this case I would prefer to avoid radio selection style.
Have a nice evening
05-11-2009 08:15 AM - edited 05-11-2009 08:21 AM
James Mamakos wrote:
I may be wrong, but is my simple method not easier than having an array of references within an event structure?
Hi James,
how flexible is it, if you need 10 or 100 instead of 3 buttons.
Mike
05-11-2009 08:42 AM
What's wrong with having huge radio-button style coding?! 😉
Fair point - i submit to your superiority, Mike! 😛
05-11-2009 08:51 AM
James Mamakos wrote:...
Fair point - i submit to your superiority, Mike! 😛
it's not necessary. For my sake he could mark your post as solution. I only tried to help.
Mike