LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i call an executable VI from another VI?

I´m trying to run an executable VI from another VI, I want the main VI to stop running while the executable sub-vi is running, and continue normally when it stops. How can i do this?
0 Kudos
Message 1 of 5
(3,421 Views)
I am not sure that you can do what you describe using an executable. I know that it is possible from within labVIEW though.

I do something similiar to this but I use a single executable program to accomplish it. I build the executable with all the sub vi's that have front panels I want seen listed as dynamic vi's. Then I use "Open VI Reference.vi" and "Invoke node.vi" to run the sub vi from the Main vi. When the sub vi is completed it will return back to where the Invoke node is and continue execution.

This is my first attempt to provide advice so I hope this helps! Good luck.

Barry Myers
0 Kudos
Message 2 of 5
(3,421 Views)
I haven't tried it with LabVIEW executables but when I call other exe's with System Exec, a true wired to the wait until completion input works for me.
0 Kudos
Message 3 of 5
(3,421 Views)
It works also with LV executables
0 Kudos
Message 4 of 5
(3,421 Views)
That's exactly what I've done too, with a LabVIEW executable. Like Dennis said, make sure you wire a TRUE to "wait until completion". This will cause your main VI to stop execution until your executable stops, like you requested.
J.R. Allen
0 Kudos
Message 5 of 5
(3,421 Views)