insert a STOP button and connect it to the conditional terminal of the While loop of the vi.
When STOP is Pressed, the vi will finish execution.
The vi property has to be set so it closes after finishing execution. To do that
right click the vi icon
windows appearnace -----customize---- enable "show front panel when run" and close afterwords if initially closed