07-24-2012 11:57 PM - edited 07-24-2012 11:57 PM
I need to perform things that would take more than 1 second.
And they need to be repeated each second.
How can I make them happen in a precise time schedule?
Solved! Go to Solution.
07-25-2012 12:32 AM
There is a construct called "Timed loop" that does what I want.
So it becomes kind of a self-answered post.
07-25-2012 02:40 AM
A timed loop is one option, but on Windows not the best. Well, to be precise: Windows itself is no good choice if you require determinism.
I would rather go for a normal while loop with a "Wait Until Next Multiple (ms)" wait function configured for 1000 ms. Depending on the code in the loop, you would probable "miss" iterations though....(which is also true for timed loops)
Norbert