LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Executable launches all vis and sub-vis at once

I used tha application builder in Labview 8 to make and executable to run on another pc running labview runtime. the application works very well in my development system but the executable launches all of my VIs and SubVIs all at the same time. I used a sequence in the main VI to progress my steps of the function. How can I get my program to launch only the top VI, and keep the SubVIs idle until called by the main VI?
 
I have a lot of development time in this project and probably should have tested this out before crunch time.
Anything I can do to compile these to launch only when called?
 
Thanks in advance!
 
Phil
0 Kudos
Message 1 of 4
(2,713 Views)
Sounds like you may have marked all of the VIs in the project as Startup. Go to the Source File category and see what you have listed.
0 Kudos
Message 2 of 4
(2,705 Views)
I'm guessing you set all your VIs as Startup VIs in the Application Builder Build Specification. That tells LabVIEW to explicitly launch all the VIs at once in the executable.

You only want your main VI to be the Startup VI. You don't even have to explicitly include subVIs in the Build Specification unless they're called dynamically (and if you don't know what I mean by that, they're probably not). SubVIs get added automatically.

Try rebuilding your app with just your main VI set as the Startup Vi and nothing else. Hope this helps!

Curses... beat by Dennis again! 🙂

Message Edited by Jarrod S. on 10-20-2006 10:51 AM

Jarrod S.
National Instruments
0 Kudos
Message 3 of 4
(2,705 Views)
I did something similar to this before.  In case your issue is not from the app builder setting, check the vi properties for the vi's you don't want showing and see if they all have windows appearance set to Top-level application window.

Cheers,
Greg Cole
“It is not the ship so much as the skillful sailing that ensures the prosperous voyage.”
0 Kudos
Message 4 of 4
(2,694 Views)