LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stop VI vs Abort VI

Hi,

I want stop and close a VI from another VI. What is the methom most recomended? I'm proving with global variables, Invoke method: abort VI, or more round-about: get value control [Variant].

Thanks

vicen

LV7.1 / WinXP
0 Kudos
Message 1 of 4
(5,127 Views)
The best way to my opinion is to create a stop condition for the subVI and set the necessary variable from the parent to generate the stop condition to stop the subVI. in this way the subVI is given the opportunity to cleanup after itself.
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 4
(5,120 Views)
HI vicens,

I would always prefer to use some "messaging system" instead of aborting a vi!
Here "messaging system" means: using global variables, LV2-style global aka action engine, queues, checking a (main) stop button by reference...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 4
(5,119 Views)
Thank you André and GerdW,

I thought the method Abort it was so extreme.

Thanks, too.

vicens
0 Kudos
Message 4 of 4
(5,109 Views)