LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop/abort a subvi called by reference ?

Solved!
Go to solution

It may as well be the same subject, because you should never - if at all possible - accept a solution that you don't understand, because if something breaks because of it (or it might break itself one day), you won't know how to fix it.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 11 of 13
(597 Views)

I completely agree with you but there are two issues in one here ;). The solution I accepted for the first issue is working, but an other issue different appears, I will create for sure another post for it if I do not find any solutions in existed ones!

Message 12 of 13
(586 Views)

Wasn't able to open your VI cus its newer than my version.

 

Give you an example. If your subVI currently has a stop button that is refreshed (read) in a loop say.

 

Wire up a property node in your TopVI with the subVI reference and the subVI stop button. I use the Invoke CtrlValSet in the pic below.

 

StopSubVI.PNG

 

You could use a Global boolean in your code and have the subVI read the global like what was mention already. This would make every VI reading the global stop.

 

There are many other ways, too numerous to list here.

0 Kudos
Message 13 of 13
(574 Views)