LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stopping subvi; not just closing the panel

I am using a subvi whose panel opens when called. I want to be able to stop the subvi -- not just close it -- when it's done. Can anyone help?
0 Kudos
Message 1 of 4
(2,813 Views)
not sure if you mean stop as in this example?
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 2 of 4
(2,813 Views)
I am using the vi in question as a subvi in a larger program. Using the Clove LV object reference as you did only closes the front panel but does not stop the subvi. So I use the STOP application control. However, stop stops the entire program -- not just the subvi.

Now how do I stop the subvi without stopping the rest of the program?
0 Kudos
Message 3 of 4
(2,813 Views)
> I am using a subvi whose panel opens when called. I want to be able to
> stop the subvi -- not just close it -- when it's done. Can anyone
> help?

You have several options. The easiest is to abort the subVI. This will
work if the subVI was dynamically called, otherwise it will abort the
root VI currently executing the subVI.

Just a bit more work is to let the subVI finish itself. Give the subVI
a termination condition -- a global variable, a user event, a notifier,
event, or other signalling object, and send the message when you would
like the subVI to return.

Greg McKaskle
0 Kudos
Message 4 of 4
(2,813 Views)