05-04-2009 04:42 AM - edited 05-04-2009 04:47 AM
Hi
I want my while loop to excute according to the time constant I set in an array, but it won't follow exactly.
For example, I set the time as 1000,1000,3000,3000...: but it's more like 1000,1000,1000,3000....sometimes. but sometimes seems correct...
What's Wrong?
Thanks in advance
Solved! Go to Solution.
05-04-2009 04:50 AM - edited 05-04-2009 04:50 AM
Hi seafood,
use the "wait" function instead of the "wait until ...". Is your vi on a RT target? If the loop runs more, then available elements in your array, then you'll get 0 as wait time.
Mike
05-04-2009 05:03 AM
Thanks Mike, It works
Now I wonder how accurate this 'wait' could be? in micro seconds region or even smaller?
05-04-2009 05:52 AM
Hi seafood,
the help says you get a milliseconds value. If you need it more exact, then you should think about a RT target.
Mike
05-04-2009 11:02 PM