LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

mutually exclusive buttons

Hi All,
 
I have two buttons on a form and one is enabled and the other is disabled and greyed out. I want that when I click on the enabled button, to disable + grey out and to enable the other button. I created a property called disabled for the buttons, but I am not sure how to change it. My way would be with two cases and some boolean logic, but maybe there is an easier way.
 
Regards,
Nick
0 Kudos
Message 1 of 6
(3,983 Views)
Just use an event structure... See attached LabVIEW 7.0 example.
 
Modify as needed.
Message 2 of 6
(3,978 Views)
Of course you did not specify what kind of mechanical action the buttons should have, and in the case of switch action, if the diabled states should either depend, or be independent, of the boolean value. There are many possible interpretations.
0 Kudos
Message 3 of 6
(3,973 Views)

Hi Altenbach,

Thank you, your example did exactly what I was looking for. I know I didn't specified the details for what I was looking for.

Regards,

Nick

0 Kudos
Message 4 of 6
(3,970 Views)
What about a radio control? only one choice of many is allowed.
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 5 of 6
(3,939 Views)
Well, a radio control does not grey out the current selection. While it might be a better choice, It does not fulfill the stated requirements. 😉
0 Kudos
Message 6 of 6
(3,929 Views)