LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Offset in timed loop doesn't work unless 1 kHz (reset at structure start) is selected

I had a timed loop setup with the timing source of 1 kHz Clock and an Offset of 2000 ms. It clearly didn't wait 2 sec before starting. So I switched the timing source to 1 kHz <reset at structure start> and it waited 2 sec before starting the loop. Is that expected behavior?
 
George
0 Kudos
Message 1 of 3
(2,759 Views)
Hi George,

I looked into your issue and I dont think there is a problem with setting the offset for any of the timers specified.  I have attached a VI to this DF that tests the offset time.  I simply created a loop that executes once and checks the timestamp before the loop and after the loop exectutes.  Looking at the time difference, it seems like it is working perfectly fine. 

If you experience something different or have any other questions, do not hesitate to ask.


Regards,

Nadim
Applications Engineering
National Instruments
0 Kudos
Message 2 of 3
(2,749 Views)

I tried your VI and it worked fine. However, my VI definitely had an issue. I went back and forth several times between the 1 kHz clock and the 1 kHz (reset at structure start) with very repeatable behavior. I've dealt with a lot of bizarre behavior with timed loops in the past year - mostly it happens if I make modifications to an existing loop. If I create a brand new loop in a new VI to try to duplicate the behavior, there is no problem. Also having two timed loops in the same VI often causes issues.

George

0 Kudos
Message 3 of 3
(2,740 Views)