Example Code

Reset While Loop iteration terminal

Code and Documents


Download All


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.

i trigger.jpg

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.