09-17-2013 11:11 AM
Hi
I need a way to close a VI, that was started from a VI server "runVI" in a way, that the running vi can catch the request to stop.
Background is a set of plugin vis that get alternatly opened in a sub panel.
Whenever I a open another one I want the previous one to stop running.
Yes, I have the reference, so I could run the method Abort, or I could ask the user to click a button for self termination, or I could send a notification or may be something else.
What I really would like to do is generate a "close panel ?"-event, discard the close , do some housekeeping and then stop running.
Any good idea ? (LV2013)
Gabi
Solved! Go to Solution.
09-17-2013 11:44 AM
09-17-2013 12:05 PM - edited 09-17-2013 12:14 PM
09-18-2013 01:55 AM
Thanks, Jim for your reply and elaboration.
Sure, this is a way to do it.
I'll have very many different VIs to start and I was looking for way to incorporate into my Sub-Panel-Class a "close"-method, that would work without too much knowledge about the loaded vi.
But it seems there is no easy way.
Since I'll need a way get data in and out anyway, I'll probably set up a queue scheme (QMH or similar) that could handle an EXIT.
Thanks again
Gabi
09-18-2013 06:43 AM
@GabiTillmann wrote:
[...] without too much knowledge about the loaded vi. [...]
I believe that the Actor Framework was designed to do this. I get the impression that the main VI would send a generic Shutdown message to its child actor(s) without caring how it is handled.