In my application I am using 3 loops
(1) Mian loop
(2) 10mSec Timed loop for Cyclic Transmission of a CAN Message
(3) 20mSec Timed loop for Reading incoming CAN messages
All is working and no serious issues so far however I have noticed that the Timed loops the Timing is not very stable I have seen deviations between 2 and 4 mSec ( I suppose this is part due OS ) .
My question is is there any way in labVIEW to make the Timed loops execute with a more accurate execution rate,
Any help comments are appreciated
Solved! Go to Solution.
That is because you are running on Windows. I have found that Timed Loops are really worthless on Windows systems. They just add overhead with little to no gain and even block possible optimizations. I recommend changing them to normal While loops and put in a wait for whatever you want your loop rate to be.
If you need the timing accuracy, then you need a Real Time system.
Thank you very much for the information.
I have thought that it is WIN OS that is causing it ,
I have once done a CAN application in VB.Net which we accesses the Multimedia Timers for timing control and I must say that the MM Timers are running accurately and thought labVIEW had the possibility to access the MM Timers.It is no problem at the moment as the machine is only throwing an CAN Timeout after 1 cycle miss(10mSec) deviating 2-4 mSec around the 10mSec is ok for now .