From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Exit vi (Discard =True) and open another vi

Hi ,

I want to know if there is a methode to Exit the Current vi when OK button ="True" and open/Run  another  (i want the code to be set in the red box ).image1.pngvi 

.

 

0 Kudos
Message 1 of 3
(2,091 Views)

Don't close the front panel, just hide it using a Property Node of the VI (Front Panel Window->State).  If you close all of the front panels, your application stops running.  So hide it instead.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(2,052 Views)

You might be looking for "dynamically starting a VI". A would dynamically start B, and can then safely quit. Note that B needs an open panel or an explicitly opened reference to itself, or it will stop running.

0 Kudos
Message 3 of 3
(2,043 Views)