LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to disable a button

Hi
all , iam doing acquisition by clicking a button.after its started acquiring data then i have disable that button so that user must not accidentally click once again , how can i disable a button.


Regards
rajesh
0 Kudos
Message 1 of 3
(3,000 Views)
Create a property node for your button, select property "disabled", then programmatically feed it one of the numbers 0-2 as needed for each situation. (0-Enabled, 1-Disabled, 2-Disabled and Grayed Out).
0 Kudos
Message 2 of 3
(2,990 Views)
hi rajesh,

i'm pretty much sure that this thread has been opened often some times before.
Perhaps you could have find the answer by searching.

Anyways:
In the block diagram: right click at the button you want to disable and choose "creat -> property node"
In the property node you created leftclick on visible (with the finger symbol) and change to disabled.
Right click on disabled and choose "change to write"

Now you can connetc an integer to this input.
The values are:
0 -> enabled (normal visible)
1 -> disabled (normal visible)
2 -> disabled (greyed)

Rainer
Message 3 of 3
(2,990 Views)