09-22-2016 06:09 PM
I want to run my main vi,
and I want that main vi to call a sub vi,
when the sub vi starts, I want it to abort the main vi,
then, I want the sub vi to keep running.
Possible?
I don't think so, because aborting the caller should also automatically abort all running sub vi's, but I wanted to confirm if there was some other trick I was missing.
Solved! Go to Solution.
09-22-2016 06:33 PM
Dynamically call the subVI. Perhaps do a Call and Forget setting?
09-22-2016 07:51 PM - edited 09-22-2016 07:52 PM
<Comment in total agreement with Raven's Fan> ...
Yes, indeed! If you are careless about making sure your "detached" VIs get stopped either "by themselves" or by your main routine "reaching into them" and turning them off, you can have multiple VIs "running loose" when your main VI (and all of its legitimate offspring) stop.
Bob Schor
09-22-2016 09:56 PM - edited 09-22-2016 10:05 PM
Ok, awesome, exactly what I was looking for.
Thanks you guys.
Solution that worked for me was to start an asynchronous call-and-forget VI call.
https://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/acbr_call_and_forget/