This is a simple VI that shows how to pause a While Loop and iterate it at the user's command.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.