LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

enabling and disabling button

Hi,
I want to have two buttons(IN, OUT) which have to appear exactly on the same position. The button should work this way: when the IN button is pressed, it should be disabled so that it does not respond to the user another click until the OUT button appears. Now the OUT button can be clicked and also be disable until the IN button appear. I have tried this using event structure( code below) but the problem is if I click the IN button many times while it is in disable state, it respond as if I have click the OUT button and keep changing.
 
Please help!!
0 Kudos
Message 1 of 3
(3,021 Views)
Hi netee,

instead of using two buttons you may use just one button and change it's boolean text (via property node) from "IN" to "OUT" and back...
If you really want to use two buttons use property nodes to hide them instead of just disabling...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(3,017 Views)

Hi netee,

i have changed the events to "value change" and it works like you described.
Hope it helps.

Mike

0 Kudos
Message 3 of 3
(3,014 Views)