Search code examples
while-loopevent-handlinglabview

Event handler freezes Front panel


I am using simple event handler in the while loop.

I have value change event for the boolean button. There is some code that takes 3-4 seconds to execute.

The problem is I am not able to click anything on my Front panel during this period. Is it possible to allow the user to click on other controls when event handler is working on some case (as I understand the event handler is able to collect all events and process them ASAP)?


Solution

  • I fully agree with Mikhail N Zakharov's answer, but anyway your problem can be easily solved by just unchecking the checkbox named Lock panel until the case for this event complates

    Please see screenshot below. enter image description here

    PS. Once again it is not the best practise to make event structure to work for 3-4 seconds.