Virus scan in progress. Please wait to download attachments.
This VI shows how you can "reset" the iteration terminal of a while loop without stopping and starting it. It does not actually reset it, but when the button is pushed it logs the current iteration value. The value is then subtracted from the actual iteration value in future loop iterations to determine how many iterations have occured since the button was pushed.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.