LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sub VI managment

How can I start other .vi files from a main panel ?

I would like to have a "main" VI panel with big push buttons that would
bring other screnn and run them. I think I have to use the Open VI ref
function, but can somebody give an example ?

Thanks.

Pierre Danis
Montreal
0 Kudos
Message 1 of 3
(2,312 Views)
I did this on a recent program. What I had to do was:
1) create the control pushbuttons for each screen I wanted to pop up
2) create a vi for each screen and then wire to the pushbuttons
3) Then you have to change the VI Setup (right click on the icon in the
upper right of your screen) for each vi associated with the pushbuttons -
Under Execution options, check "show front panel when called' and "close
afterwared if originally closed.
-Melissa

PIerre Danis wrote:

> How can I start other .vi files from a main panel ?
>
> I would like to have a "main" VI panel with big push buttons that would
> bring other screnn and run them. I think I have to use the Open VI ref
> function, but can somebody give an example ?
>
> Thanks.
>
> Pierre Danis
> Montreal
0 Kudos
Message 2 of 3
(2,312 Views)
I've done this method before a few times, and it works well, but I've had
the following problem:

I can't find a way to launch, and run, more than one vi at a time. I'd like
to be able to load multiple vi's ( with multiple front panels) at the same
time form the main menu. The problem is that control doesn't return to the
main menu until the selected sub-vi has fully completed execution. Any
idea on how to do this?

Thanks!
-Nate

Melissa Sager wrote:
>I did this on a recent program. What I had to do was:>1) create the control
pushbuttons for each screen I wanted to pop up>2) create a vi for each screen
and then wire to the pushbuttons>3) Then you have to change the VI Setup
(right click on the icon in the>upper right of your sc
reen) for each vi associated
with the pushbuttons ->Under Execution options, check "show front panel when
called' and "close>afterwared if originally closed.>-Melissa>>PIerre Danis
wrote:>>> How can I start other .vi files from a main panel ?>>>> I would
like to have a "main" VI panel with big push buttons that would>> bring other
screnn and run them. I think I have to use the Open VI ref>> function, but
can somebody give an example ?>>>> Thanks.>>>> Pierre Danis>> Montreal>
0 Kudos
Message 3 of 3
(2,312 Views)