LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can a program be compiled to run continuously using application builder

I am creating a software package that is menu driven that calls multiple VI's. Using the application builder I have been able to get everything looking and running good except that the first time the main menu calls out a VI when it returns the program stops. You can resolve this from happening the next time you select a menu item by clicking on the continuous button for the Main Menu but I would prefer to just compile the software to have the main menu run continuously all the time. Is this possible? Or should I be calling vi's in a different manner?
0 Kudos
Message 1 of 3
(2,848 Views)
The "continuous run" button has no use in any serious application, something is wrong with your code.

In the simplest case, you just need another big while loop all around the code of your main VI.

(Of course the problem could be more complex. How are the subVIs called?)
Message 2 of 3
(2,848 Views)
Hello,

The while loop as altenbach suggests is probably all you will need.

For a great example of a continuously-running menu-driven program, see the attached screen shot.

Hope this helps!

Liz F
National Instruments
0 Kudos
Message 3 of 3
(2,848 Views)