annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

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 Compliments
Message 1 sur 9
3 410 Visites

Hi plit strin...,

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

 

Mike

Message 2 sur 9
3 404 Visites

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 sur 9
3 401 Visites
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 sur 9
3 392 Visites

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 heureux

 

 

0 Compliments
Message 5 sur 9
3 383 Visites

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

 

Thanks Smiley clignant de l'œil

0 Compliments
Message 6 sur 9
3 380 Visites

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 sur 9
3 357 Visites

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 clignant de l'œil

0 Compliments
Message 8 sur 9
3 350 Visites

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 sur 9
3 347 Visites