LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bring a Calling VI's front panel to the front of the desktop

My main VI calls sub vi's which open and close or sometimes not but the main VI should come to the front when executing in its own domain such as when it is time to select another choice.
The question is " How can I make my VI come to the front of the desktop when needed?" IS there a foolproof way?
Thanks
0 Kudos
Message 1 of 4
(3,073 Views)
You can use a VI Server Property node to bring a VI's front panel to the front.

1. Drop a Property Node from the Application Control sub-palette on your diagram.

2. Right-click on it to Select Class >> VI Server >> VI

3. Now select the Front Panel Window >> Is Frontmost property.

4. Change the property to Write (right click to bring up the pop-up)

5. Wire a TRUE to bring the VI's front panel to the front.

You can use the property node any time you reach a point in your code that requires user input on that panel.

Daniel L. Press
PrimeTest Corp.
www.primetest.com
0 Kudos
Message 2 of 4
(3,073 Views)
When using Dan's method, it is important that the running subvi does not "hold" the main VI's executation thread. To avoid this problem, use VI server to load and run the subvi, and make sure do not wait for the subvi to complete.

Joe Guo
0 Kudos
Message 3 of 4
(3,073 Views)
Good point!
0 Kudos
Message 4 of 4
(3,073 Views)