LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

open a secondary Vi from a principal Vi and run all together

Hello!
 
I have to different applications,two different Vi. One of this, the principal Vi have to run all time. I want to open the secondary VI from the principal, use it and close it.......but the principal don't have to stop any time.....
Is possible to do this? I've tried to use the secondary Vi as a suv VI but the principal VI stops until secondary finish. How i havw to do this? Which is the best way?
 
Thank you very much
 
 
Merry Christmas to all you!!!!
 
Larson
0 Kudos
Message 1 of 3
(2,800 Views)

Either place it in its own loop, where it won't stop the rest of the VI, or call it dynamically.

To do this, you need to place on the diagram an Open VI Reference, followed by an Invoke Node (both from the Application Control palette) and wire the VI reference into the invoke node. Then, select the Run VI method in the invoke node and wire F into Wait Until Done. This will make the node run the VI and return immediately. You may need to place another node to open the FP of that VI. Note that if you want to build this into an application, you need to explicitly include this VI in your build. Search for information and tutorial regarding "VI server" to learn more about calling VIs dynamically.

To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).


___________________
Try to take over the world!
Message 2 of 3
(2,794 Views)

Hii, Larson

               I am absolutely agree to tst, and another option is place ur vi as a subvi in the loop where u need 2 call ur vi in the principal vi and right click on that, in which select the subvi node setup, which shows u the figure like i ve attached and in this u can configure show front panel when called and suspend when ...., try this and let me inform, how it is going!!!!

 

Thanks,

Nishant

0 Kudos
Message 3 of 3
(2,773 Views)