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
(1,555 Views)

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

Message 2 of 4
(1,545 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
(1,529 Views)
Solution
Accepted by topic author 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
(1,512 Views)