07-28-2015 07:15 AM
Dear alls,
Any one know why the time loop is not accurate at defined period at the RealTime Trace Viewer ? In figure of VI, I set the period for the time loop is 250 us, but when I analyze in Real time Trace Viewer, it shows the real period time about 676 us. That means my data acquisition will be sampled in wrong sampling rate.
Could you give me some explane, please? And how can I solve this problem? I tested this code with MyRIO board.
Best Regards,
Kien
Solved! Go to Solution.
07-28-2015 07:20 AM
Why do you have a wait in your timed loop? The point of the Timed Loop is to state the loop rate.
Can you post your actual VI? I suspect something else is happening here that we cannot see (configurations, channels used, etc).
07-28-2015 07:50 AM
@crossrulz wrote:
Why do you have a wait in your timed loop? The point of the Timed Loop is to state the loop rate.
??? Bigger problems than that! Why do you have any timing other that the TASK timing? And really, The task timing is most likely the loop rate.
Can you post your actual VI? I suspect something else is happening here that we cannot see (configurations, channels used, etc).
And a snip of the Task needs posting
07-28-2015 08:39 AM
Dear crossrulz,
Oh, this is my fault when I changed the while Loop to Time Loop. I did not delete the wait. Yes, I corrected it and It works as it should. Thank you crossrulz.
I posted 2 vi files with picture of their results in Real-Time Trace View for other people can try.
Best regards,
Kien