ni.com is currently experiencing unexpected issues.
Some services may be unavailable at this time.
08-22-2008 09:06 AM
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
08-22-2008 09:17 AM
Hi plit strin...,
you should use a wait in your loop. See the attached example please.
Mike
08-22-2008 09:20 AM
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.
08-22-2008 09:38 AM
08-22-2008 10:28 AM
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
08-22-2008 10:33 AM
Thanks for help, Mike did show me what you susgested and it works!
Thanks
08-22-2008 11:32 AM - edited 08-22-2008 11:32 AM
Hi plit stri...,
please think about the "abort" function as Dennis mentioned.
Mike
08-22-2008 12:03 PM
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
08-22-2008 12:09 PM
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.