LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to exit from button callback function before it complete execution in LabwindowsCVI

Solved!
Go to solution

Idle events aren't so much deprecated as they're obsolete. In the sense that, once timer controls were introduced, idle events lost their reason for being. But they're not going anywhere, so it's okay to use them if you find them more convenient.

 

Luis

0 Kudos
Message 11 of 14
(901 Views)

I couldn't resist a back-to-back comparison of the two approaches. The TIMER version managed 423 scans in 8.79 secs at 34% CPU usage. The IDLE version did 399 scans in 8.76s at 8%. I'm staying IDLE 🙂

0 Kudos
Message 12 of 14
(883 Views)

I was to ask Luis some hint on when and why to use idle events instead of timers.

Seems your tests give me an answer Smiley Wink

 

I assume I have to deep my knowledge on idle events  Smiley Happy



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 13 of 14
(876 Views)

I would test both approaches on a loaded CPU, you may have some surprise... message queues *usually* are not happy with busy systems...

 

Carlo A.
Megaris




0 Kudos
Message 14 of 14
(861 Views)