LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic user events freeze user interface

Hi all,

 

I am having problem with dynamic user events.

 

Dynamic user event is registered to the event structure, and many dynamic user events come in very fast, about every 30 ms. It freezes up the user interface, no response to mouse and keyboard, even after all user events finish execution.

 

Any idea or work around?

 

Thanks for any help.

 

Anne

0 Kudos
Message 1 of 3
(2,516 Views)

Hi Anne,

 

> Dynamic user event is registered to the event structure, and many dynamic user events come in very fast, about every 30 ms.

 

The 30ms rate is not unreasonably fast as long as the processing for the event(s) can be completed in less than 30ms.

What tasks are you doing in the User Event?

For tasks that may take time to complete (like logging) you could queue up the data and send it to a consumer loop.

 

> It freezes up the user interface, no response to mouse and keyboard, even after all user events finish execution.

 

My *guess* here is that you got stuck in an event that never completed.

 

steve

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 3
(2,499 Views)

...or there was yet another event that was never serviced AND the event was configured as "Lock UI...". That setting can be disabled by right-clicking the event registration node.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 3
(2,492 Views)