LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Large Application not shutting down when run as executable

Will greatly appreciate if somebody could share their experience.

I have a large application containing many functional global variables. If I run the main vi from development environment, it works a treat. After doing build and running it as an executable, it again works a treat. It however doesn't close down the front panel as it does when running on development computer. Cant really think why it will work fine in development computer and not as an executable. I think there is nothing wrong with the code. Anything I could do to avoid this behaviour?

 

Kind Regards

Austin

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

Hi Austin,

 

Hard to tell without knowing what's going on in your code -- you don't provide much detail -- but here are some suggestions:

 

close window setting.png

Do you have those settings selected for your VI's window?

 

It also could be that there is an error occuring somewhere which is preventing your executable from actually stopping.  Do you have an explicit error handling section in your code?  If not, how are you detecting and handling errors?

 

To force a front panel close, you could use the "FP.Close" method after your code has finished executing.

 

As a side note, I generally find when things are acting funny that there's something wrong with my code.  Smiley Wink

 

Diane

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

I used notifier and this problem is now solved and my executable is now shutting properly.

Thanks

Austin

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