05-02-2015 03:16 PM
When a while loop is run how can the iteration value be saved so it can be used as some input value the next time the loop is run?
05-02-2015 03:26 PM
Shift registers. Put a shift register on your outer loop as well as the inner loop.
05-03-2015 12:01 PM
Good Day RavensFan,
Thank you for your reply. But can you elaborate by giving an example in the form of a vi.
Thanks
05-03-2015 12:25 PM
The iteration terminal always starts at zero with every new run, so you need to make your own.
As Ravens already said, create shift registers in the inner and outer loop and connect them all. Initialize outside with zero and add a "+1" in the innermost loop. See how far you get.
05-04-2015 12:11 PM
Is this what you are saying?
05-04-2015 12:27 PM
@gates123 wrote:
Is this what you are saying?
Yes, that looks about right. If you want the inner loop to also start with zero on the indicator (like any normal loop!), wire the indicator before the increment function.