LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I open a subvi when running a vi in an application (executable file)

I have a vi that I converted into an executable file.  I would like to run it and at the same time be able to open the front panel of one of its subvis.  Does anybody know how to do that?
 
Thanks,
 
Jerome.
0 Kudos
Message 1 of 3
(2,760 Views)
You can set the SubVI to "Open Front Panel when Called" and "Close Afterward if Originally Closed" - that makes it a pop-up window. When your main calls it, the subVI window opens up. You do stuff, click the DONE button, and it disappears, and the main is up front again. (Make sure your subVI is MODAL if you do this).

You can use the VI SERVER to load the VI, given a path to it. You can set the subVI to "Open Front Panel when Loaded", or you can set FRONT PANEL.OPEN to TRUE when you want it to appear, and FALSE when you want it to go away.

You can make a subpanel on your main, and have the subVI inserted into that.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

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

Also, when you built the executable, make sure that you don't remove the front panel of the subVIs you wany to display. 🙂

 

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