LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Way to block User Events?

Solved!
Go to solution

Hey, I’m new to LabVIEW and still get stuck and rather simple Problems…

 

I have a subVi that needs some time to process. While this time I want to block all user inputs.

 

My first guess was I simply can disable and re-enable my Front panel.

 

My problem is: I trigger my sub VI by an Event Structure and if I disable within the same event, I get the visual update on the front panel but the order in which clicks get processed result in they still fire after my event re-enabled the GUI.

 

What would be a clean approach to block the GUI while my event gets processed?

Do I have to do some clunky logic to manually prevent double firing of events?

 

Unbenannt3.PNG

 

Edit: I found the "Limit maximum instances of this event in event queue" but this dosn't helps mit other events.

Edit Edit: Seems like it does help ..., I guess I asked a bit too quickly. Sadly I can't delete this question.

0 Kudos
Message 1 of 3
(1,140 Views)
Solution
Accepted by topic author PaulPascher

Are you aware of the "Lock Panel" setting on Events?  It defers User actions, but does not disable them.  By default it is on, and it would result in the behaviour you describe.

Message 2 of 3
(1,122 Views)

If it takes some time it can also be a good idea to use Set Cursor to show the occupied icon while it's working.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 3
(1,055 Views)