LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

closing a vi

hi

i have written some vi`s which are running at the same time. i integrated
buttons in each vi to stop the vi. now the problem: if i press the stop
button, the vi stops and is shown in the edit-window. i would like to
automatically close this window when pressing the button.
i tried to use the exit labview function, but this also closes the other
running vi´s.
so is there a solution for stopping and closing a vi with keeping other vi´s
running?

thanks in advance

Fritz
0 Kudos
Message 1 of 6
(3,571 Views)
You might want to use "Property Node" and selecting "VI". Select "Front Panel -> Open" and wire a FALSE boolean to close the front panel of the VI. You might want to consider using the button that you already have so that when the VI stops, it closes the front panel.

You can also programatically close other front panels using a "Open VI Reference", then the "Property Node" and finally "Close VI Reference" functions. They are all located in your "Application Control" palette.

Hope that helps. Thanks.

Shan Pin Koh
0 Kudos
Message 2 of 6
(3,571 Views)
Use the 'Close Application or VI Reference' VI from the Functions>Applications Control Palette. This VI Closes an open VI which you reference. Wire the VI reference into it, perhaps having your booleon close button control a Comparison>Select or a Case, to this VI.

Note: there is also a Close Panel VI, which may work just as well - you wire in the VI name with it. It aborts and closes the called Front panel. But this VI may not be included with your LV version - if you want it, let me know.
Good Luck, Doug
0 Kudos
Message 3 of 6
(3,571 Views)
thanks for your help, the close panel vi was exactly what i was looking
for!!!!


"Doug (CapeFl)" schrieb im Newsbeitrag
news:506500000005000000F9320000-993342863000@exchange.ni.com...
> Use the 'Close Application or VI Reference' VI from the
> Functions>Applications Control Palette. This VI Closes an open VI
> which you reference. Wire the VI reference into it, perhaps having
> your booleon close button control a Comparison>Select or a Case, to
> this VI.
>
> Note: there is also a Close Panel VI, which may work just as well -
> you wire in the VI name with it. It aborts and closes the called
> Front panel. But this VI may not be included with your LV version -
> if you want it, let me know.
> Good Luck, Doug
0 Kudos
Message 5 of 6
(3,571 Views)
Great...apparently you had the vi, but I've noticed absent from different LV versions.
0 Kudos
Message 6 of 6
(3,572 Views)
Hi,

You may just want to change the VI Properties (right click on the VI
icon)... under "Window Appearance"... check "Show Front Panel When Called"
and "Close Afterwards if Originally Closed"... This works real nice. As
soon as the loop in the sub-vi ends, the window goes away revealing the
calling VI's Front Panel.

Bill

---

Friedrich Groisböck wrote in message
news:9hcu4s$a0k$1@fstgss02.tu-graz.ac.at...
> hi
>
> i have written some vi`s which are running at the same time. i integrated
> buttons in each vi to stop the vi. now the problem: if i press the stop
> button, the vi stops and is shown in the edit-window. i would like to
> automatically close this window when pressing the button.
> i tried to use the exit labview function, but this a
lso closes the other
> running vi´s.
> so is there a solution for stopping and closing a vi with keeping other
vi´s
> running?
>
> thanks in advance
>
> Fritz
>
>
0 Kudos
Message 4 of 6
(3,571 Views)