04-11-2013 07:41 PM
Hi
I am Trying to replace a Stop button of a while loop by windows cross button by using event structure. Looks like the VI window closes but it does not stop. I am using this vi as a sub vi. So the block diagram might look stange. Please try running the main vi. Can you help me figure out what is wrong? I want the same funtionality for both the cases.
Solved! Go to Solution.
04-11-2013 07:57 PM
The windows x button closes the panel. It will not influence the running operation.
To do what you want, you need to create an event structure with a "windows close?" filtering event, discard the event and send a TRUE to the stop terminal of the while loop.
04-11-2013 08:12 PM
Here's a quick draft. Make sure the subVI is set to open the front panel and close afterwards, then close it before running.
04-11-2013 09:33 PM
Hi Altenbach,
Thanks. It works after a little modifications.