LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can go back the Main VI after build exe file (by Application builder)

Dear all,

I am writing some vi similar to the vis below.
It work properly at the vi mode, but after I build it to a exe file
(by Application builder). I found when it go back to Main Menu from
Sub Menu, it will close the vi automatically.

Can anyone tell me how to slove this problem?

Here are the vis.
Download All
0 Kudos
Message 1 of 2
(2,634 Views)
Hi,

The problem is that the executable closes the first window, because there is
no reference open to its front panel. A solution might be to pass the
reference of the main VI to the sub VI.

You can also use FP.state iso FP.open. This alows you to hide the front
panel, without automatically closing the vi. I'd prefer this over the first
solution.

Regards,

Wiebe.


"MusicIsLive" wrote in message
news:50650000000800000003C10000-1077334037000@exchange.ni.com...
> Dear all,
>
> I am writing some vi similar to the vis below.
> It work properly at the vi mode, but after I build it to a exe file
> (by Application builder). I found when it go back to Main Menu from
> Sub Menu, it will close the vi automatically.
>
> Can anyone tell me how to slove this pr
oblem?
>
> Here are the vis.
0 Kudos
Message 2 of 2
(2,634 Views)