From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Possible for sub vi to abort caller vi and then keep running?

Solved!
Go to solution

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.

0 Kudos
Message 1 of 4
(2,782 Views)

Dynamically call the subVI.  Perhaps do a Call and Forget setting?

Message 2 of 4
(2,772 Views)

<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

Message 3 of 4
(2,756 Views)
Solution
Accepted by wnb

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/

0 Kudos
Message 4 of 4
(2,739 Views)