04-29-2016 08:32 PM
Question about timed loop received timing:
1st I want to have precise timing in my code.
2nd, I want to display a flickering image on monitor, but one of the images (the blank one) should be displayed in a short interval.
To have precise timing, I used timed while loop with 2 frames. The timing source is 1KHz, and the duration of entire loop is 1000 (1sec).
I set 20 msec on the input "start" of 1st frame (the blank image), and the rest of loop that is the 2nd frame (my main image) is expected to take long 980 msec.
But when I ran it, I faced with these contradictions:
1- 1st and 2nd frames duration is different (frame duration: 20 and 1 respectively), while in both of them just one image is displayed.
2- The time consumed for 1st loop is 40 msec, while I set 20 for "start" node of 2nd frame (means it should start after 20 timing source frames=20 msec from the 1st frame beginning).
3- I used timed loop to have precise timing in my code, BUT in each iteration the time elapsed in each 1st and 2nd frames are not the same as previous iterations.
What is the problem?
Thanks
04-29-2016 08:54 PM
What is wrong with the information from your other thread: http://forums.ni.com/t5/LabVIEW/Timed-Loop-quot-Frame-Duration-quot-problem/m-p/3289085#M961316