From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't change button during execution.

Hi,
I am having trouble changing the state of a boolean button during program execution.
I've attached two files. The second file is similar to the first, but with an event structure added. When running the second file, the boolean buttons get locked. Does anyone know how to unlock them?
Thanks.
Download All
0 Kudos
Message 1 of 2
(2,443 Views)
You have the "Lock panel until handler completes" option activated for the Event case you created. Right-click on the Event title and disable that option on the pop-up menu. Your panel will then behave as you expect.

Since you have a while loop inside the event handler, the panel is locked when you first click the boolean.

Keep playing with that event structure. It is most powerful! You might want to think about using it in tandem with a state machine.

Daniel L. Press
PrimeTest Corp.
www.primetest.com
Message 2 of 2
(2,443 Views)