LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Front Panel Lock on All Controls Value Change Dynamic Event

Solved!
Go to solution

I have created a dynamic event to detect if any control on the front panel changes values. This works, but locks the front panel after the first time it fires. Under the right-click menu of the Register for Events call, there is an option selected to "Lock Panel Until Handler Completes". If I uncheck this, the event works as expected.

 

What is LabVIEW waiting for when the Lock Panel option is selected? I am worried I am filling up some queue of 'unhandled events' by unchecking this option as a workaround.

 

LV2019 example attached, or screenshoted below.

 

Thanks!

 

JeremyPeterson_0-1734546777323.png

 

0 Kudos
Message 1 of 4
(86 Views)
Solution
Accepted by Jeremy.Peterson

Right now, you're registering for events every single loop.  You should only be doing this once at the start, outside the loop.

 

Kyle97330_0-1734548503882.png

 

Message 2 of 4
(78 Views)

That did the trick, thanks!

0 Kudos
Message 3 of 4
(63 Views)

Also, forgot to mention, but if this becomes a subVI (i.e. part of a larger program and might run more than once before LabVIEW closes and cleans up everything in memory) then you will also need a "Unregister For Events" node on the other side of the While loop running after it concludes.

Message 4 of 4
(59 Views)