If you click it in a sub-vi, it just closes the front-panel but does not stop execution of the subvi.
I have to possibilities you could try:
1. Disable the button and create a button to stop the vi
2. Use the event-structure to react on the button-click and stop the vi
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------