LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Organizing Sub VIs

I have an application that consists of the following :

1. Splash.vi ( Displays the Splash screen with my logo and copywright stuff. After 5 seconds closes and launches Password .vi )

2. Password.vi ( Waits for user to type in password and if OK , closes itself and launches main.vi)

3. Main.vi ( This is the base screen for another 6 VIs that are fitted into the sub panel of this VI and called by the user as required using text buttons on the main.vi )

( Each of the 6 vis that are called by the Main consist of timed loops apart from two more timed loops in Main. Hence it is not easy to convert them into sub.vis. Maybe its possible - but I have not tried...)

The query is if I want to wrap up all these together using Application Builder, how to proceed ? If I decide that Main.vi is my top level vi, then what to do with Splash and Password vis ?

I am using LV7.1

Any suggestions on how to restructure my application ?

Thanks

Raghunathan
Raghunathan
LabVIEW to Automate Hydraulic Test rigs.
0 Kudos
Message 1 of 3
(2,621 Views)
I believe that you will need to set Splash.vi as your top level vi since that is the first that will be called. All other VIs are called as subroutines to that VI. You will need to modify the properties of Password.vi and Main.vi so thatthey show the front panel when called.

You can do this either by modifying the VI's properties and window appearance or by modifying the properties of the VI in App Builder,

Richard
0 Kudos
Message 2 of 3
(2,612 Views)
Your Main vi, in the sense of the Application builder, is Splash.vi. All the others are dynamic vis.
To simplify their management, I suggest you to create a dumb vi (name it Dynamics.vi), in which you put all the vi's that have to be called by the main vi or its subsidiaries, then add this vi as a dynamic vi when setting up the source files. It is easyer than entering separately all the subs...

CC
Chilly Charly    (aka CC)
0 Kudos
Message 3 of 3
(2,602 Views)