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: 

timed loop compared in CVI and labview

Ssyncronous timers can be useful in this case, unless you directly move to a multithreaded environment, where all problems due to time spent by the system in othere activities can be excluded. The example I posted in this other thread of yours can be easily modified adding Sleep in the loop(s) to verify the behaviour of the function in various situations (sleep policy and presence of ProcessSystemEvents).

While running a brief, single-threaded example I have verified that the process time is directly dependent on how fast you call Sleep: i.e. there is a systematic error on timing due to processor activity.



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 11 of 11
(1,039 Views)