LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling and returning to different Vi windows

Quick question. I want to write a project that has a main window with various buttons and when a button it clicked on i want the vi to call a different window on screen while simultaneously closing the main window. Once i'm finished with the second window and i close it i want the main window to automatically pop back up. how do i go about doing this.
I also would like the button i previously selected in the main window to now maybe change colour to show that it has been modified and i need some of the changes that were made in the secondary window available in the Main vi.

Hope i explained this clearly
0 Kudos
Message 1 of 4
(2,858 Views)

You're in luck, I just did this the other day. Here's how I did it. ATP Main is the sub VI I'm calling. Put this into your main VI to close it while you pop up the sub VI. Set the sub VI to show the front panel when called (set its appearance to top level VI). The main VI will hide while the sub VI runs, then when you close the sub VI, the main VI will reappear.

Edit: forgot to show the reference to the main VI (This VI) connected to those property nodes.

Message Edited by Marc A on 02-16-2007 08:55 AM

Message Edited by Marc A on 02-16-2007 08:57 AM

0 Kudos
Message 2 of 4
(2,847 Views)

Hi,

Little example done quickly ! Hope this helps !

Julien

Download All
0 Kudos
Message 3 of 4
(2,840 Views)
Cool. Thanks guys. Those suggestions really help.
0 Kudos
Message 4 of 4
(2,836 Views)