10-06-2009 10:39 AM
I am trying to recreate a control panel that is a row of buttons where only one button can be pressed at a time.
Pressing any one button clears any other that was on.
I have seen this done before, in fact I have done this myself, but for the life of me I can not remeber how I did it without some stupid Rube Goldburge vi...
10-06-2009 10:44 AM
10-06-2009 10:56 AM
10-06-2009 11:12 AM
10-06-2009 11:44 AM
Thanks for all of your suggestions.
Mark Yedinak's less elegant solution was the direction I was aiming for as i already have the booleans in my program.
I would like to see some examples of thte other soutions.
The radio buttons seems like the easiest approch but it is a control and I need booleans. I guess a case structure full of local variables to set and reset the booleans to go along with this would work.
I have never used an event structure so I do not even know how to use one for any purpose.
10-06-2009 11:47 AM
Here is a link to an example I previously posted. You can ignore the the blinking part, as a bonus I threw in code to only allow a single true element in the array.
http://forums.ni.com/ni/board/message?board.id=170&message.id=438296#M438296
10-06-2009 11:57 AM - edited 10-06-2009 11:59 AM
Darin.K wrote:Here is a link to an example I previously posted. You can ignore the the blinking part, as a bonus I threw in code to only allow a single true element in the array.
http://forums.ni.com/ni/board/message?board.id=170&message.id=438296#M438296
That's really cool, but I do not understand how to modify it for my needs.
I tried removing the blinking part but that broke the event thing...
10-06-2009 12:07 PM
10-06-2009 01:30 PM
10-06-2009 01:36 PM
RTSLVU,
Here is a pretty simple way to get booleans from Radio Buttons control. This would work really well with an Event Structure.