From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Persistent iteration counter when not discarding missed periods in a timed loop

I see this on LabVIEW 2009. The "Discard Missed Periods" option for a timed loop, when UNCHECKED, means the iteration variable in the loop will be peristent even if you stop and then re-start the VI in which the loop resides.

 

I understand the need for persistency if your current iteration is late and you want it to try and "catch up", but NOT if you actually stop and start the VI again. In this case, how do you get the iteration variable to reset to 0?

 

Bill M.

0 Kudos
Message 1 of 3
(2,482 Views)
Clarification: this only happens when you are running more than one timed while loop (each in its own VI). Behaves as expected with one loop.
0 Kudos
Message 2 of 3
(2,471 Views)

Switching to the 1KHz <reset on structure start> timing source obviates this behaviour. So to quote Gilda Radner from the original SNL: "Nevermind".

Message 3 of 3
(2,450 Views)