LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

two dialog logs

I am working a program that would utilized two dialogs vi.  When the program starts, dialog 1 would pop up to gether information from user (close afterward).  Then, dialog 2 (main program) will pop up while the main program is running.  My problem is that I want to use dialog 2 as my main VI, but I don't want to use it to start the program, since dialog 2 has a lot of information on it, and a start button just don't fit.  I am trying to find the best way to manage the dialogs.  Below are what I am thinking.  Let me know what you think.

 

1.  Create a dialog 0 that would be my main VI with a simple dialg that would allow the user to initiate the program, and it will call up dialog 1 and dialog 2?

2.  Use dialog 2 as my main vi, but it will hide itself and show dialog 1 ASAP when the user first starts the program.  Dialog 2 will reappear again when dialog 1 is done.

3. Squeeze a start button on dialog 2?

 

 

Yik

 

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 7
(3,461 Views)

4. Start dialog1 and then:

   4.1 store the gathered infos (into globals, functional globals, ...)

   4.2 call dinamically the main program (dialog 2)

   4.3 exit from dialog1

 

Marco

0 Kudos
Message 2 of 7
(3,423 Views)

Would you tell me what are the advantages when I call VI dynamically?  I have not tried it before, since I don't know when is the best time to use it.

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 3 of 7
(3,414 Views)

Actually, here the only advantage is that this will allow dialog1 to exit,

and you can forget about it once it has gathered data from the user...

 

Marco

0 Kudos
Message 4 of 7
(3,406 Views)

Just an example of what I mean:

dyncall.PNG

0 Kudos
Message 5 of 7
(3,403 Views)

Couldn't I just do the same thing if I put the subvi inside my main program and configure the subvi so that the front panel of the subvi pop up during run time?

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 6 of 7
(3,395 Views)

Given your numbering, why not have dialogue 2 start off and have it immediately call dialogue 1.  When user is done with dialogue 1, it closes to reveal dialogue 2?

0 Kudos
Message 7 of 7
(3,388 Views)