From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I freeze events?

Hello.

 

Is there a way to freeze the events coming from the user interface and then get them all together (for example with the ProcessSystemEvents function)?

 

Thanks,

Vasileios.

0 Kudos
Message 1 of 4
(4,510 Views)
Wrong approach.
The OS handles the event queue. Your application main thread processes these events. If for whatever reason your applicatin is running a computationally heavy chunk of code, user events m.ay not be processed promptly. Your interaction beomes slUgish. If that happens you may call the ProcesEvent type function or is you want to stop these events to bother your program, run your code it in a new thread.
0 Kudos
Message 2 of 4
(4,502 Views)

Hello vakost,

which behaviour are you intending to achieve with such a scenario?



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 4
(4,475 Views)

Hello.

 

I solved the problem with a different approach.

 

Thank you!

 

Vasileios.

0 Kudos
Message 4 of 4
(4,441 Views)