11-04-2020 03:32 AM - edited 11-04-2020 03:37 AM
Hi,
I'm trying to figure out the best way to stop a VI, in a subpanel, which normally uses "Window: close" for stopping.
I have tried the following methods (just for testing):
This works, but its not a good way to stop a VI.
This also works, but then a "Stop" button must be added to the "TestVI" as an alternativ to the "Window: close" event.
This does not work, but I wish it did (as it would trigger the "Window: close" event)😅
So, what would be the best approach, in this case, for stopping the VI (in a subpanel)? 🤔
(PS: If the last alternativ with "Close window" can work, if wired differently, please let me know😁)
Solved! Go to Solution.
11-05-2020 08:22 PM
I recommend you explore the option of using User Events. I usually rely on those when I asynchronous VIs I need to stop from a caller GVI, and still want to be able to test them separately.
This is how the caller looks like:
This is what the called looks like:
Disclaimer: I prefer using the function Start Asynchronous Call and passing the user even through the connector pane. However, this functionality has a bug up to version 5.0, hence my approach of using a Set Control Value and Run VI functions combination.
All the best!