ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem of Execute & Abort Vi's (URGENT)

I would like to launch 2 VI's independtly without having problems if one of them is stuck, therefore I create my main VI to launch those 2 VI's, but I have 2 problems (please see my attached VI) :

 

1. I could not to shut-down those Launch VIs completely after launching them (After Abort VI, they still running in the back ground)

 

2. Those Vis has one input & one output, with the way I setup ... can I send 2 commands to those 2 VI's & able to read their outputs in the Main VI? Might be through their Global variables?

 

Thank for any helps :smileyindifferent:

0 Kudos
Message 1 of 9
(3,408 Views)

Hi plit strin...,

you should use a wait in your loop. See the attached example please.

 

Mike

Message 2 of 9
(3,402 Views)

The problem is that you haven't wired the VI reference input to your Abort method.

 

Also, there is no need to code with sequence frames. Further, you can use shift registers to hold the VI references. You should also add a small delay in your loop in your main VI. 

Message 3 of 9
(3,399 Views)
Do NOT use the Abort method. Have a front panel stop button on your subVI and use the Set[Flattened] or Set[Variant] method to pass a value to the button and stop it gracefully.
Message 4 of 9
(3,390 Views)

Hi Mike,

 

It executes perfectly! However, I hope that I can send parameters to their inputs and can receive their output to show in the main VI

 

Many thanks Smiley Happy

 

 

0 Kudos
Message 5 of 9
(3,381 Views)

Thanks for help, Mike did show me what you susgested and it works!

 

Thanks Smiley Wink

0 Kudos
Message 6 of 9
(3,378 Views)

Hi plit stri...,

please think about the "abort" function as Dennis mentioned.

Mike 

Message Edited by MikeS81 on 08-22-2008 06:32 PM
Message 7 of 9
(3,355 Views)

Hi Denis,

 

By using Mike 's method and combine with using Global variables I am able to control & minitor those 2 sub-vi. Problem solved! I have not try your method since I have to catch up my schedule (late) but I will try when I have time!

 

Thanks for help Smiley Wink

0 Kudos
Message 8 of 9
(3,348 Views)

I would advise you to try it sooner than later. That car wreck in my link is no exaggeration in a lot of situations - especially if you are using any hardware.

Message 9 of 9
(3,345 Views)