11-07-2010 01:07 AM
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
11-08-2010 09:07 AM
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
11-08-2010 10:03 AM
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.
11-08-2010 10:16 AM
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
11-08-2010 10:19 AM
Just an example of what I mean:
11-08-2010 01:48 PM
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?
11-08-2010 02:12 PM
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?