user5363427
user5363427

Reputation:

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)?

Upvotes: 1

Views: 1389

Answers (2)

Khachik Sahakyan
Khachik Sahakyan

Reputation: 1982

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.

Upvotes: 1

mzu
mzu

Reputation: 723

I think you need to restructure your application to make it more responsive. LabVIEW best development practices suggest keeping event handler code as fast as possible. One of the ways to handle this would be to send a message into the queue on the change of this Boolean control and process the queue in a separate loop.

Upvotes: 1

Related Questions