LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

quit labview does not work in executable

I recently upgraded my labview and application builder from version 7.1 to 8.2 and then 8.2.1.
An executable that I created contains the quit labview function.
With version 7.1, a true input to that function would close down the executable completely, including the run-time engine, which is what I wanted.
However, when I build a similar executable in version 8.2.1, this same call to the function causes the executable to stop running, but the front-panel is still there waiting to start-up again.  The run button appears, even though I specify it not to appear under the Window Appearance in VI properties.
The other thing that happens is that during panel close, the program hangs for several seconds, then the Task Manager says that the program is not responding, and then it closes completely a few seconds later.  I would prefer it to stop right away.

From reading knowledgebase articles, this seems to suggest that there are some unclosed references, but I can't really find any.
Anyway, it's pretty much the same code as 7.1, and I did not see this same problem there.
0 Kudos
Message 1 of 6
(4,089 Views)
Could you at your shutdown code.
I haven't seen this!

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 6
(4,065 Views)

How about this?

There might be others as well.


___________________
Try to take over the world!
0 Kudos
Message 3 of 6
(4,057 Views)
Thanks for the links to the other topics.  I have fixed the first problem by removing Application Instance Close from the event structure in the vi.  I'm not sure how it got there.  It must have showed up when I saved the vi the first time in 8.2 from 7.1.
However, I still have the hanging problem when I close the executable from the red X button in the upper right of the window.  This triggers the Panel Close event in the structure, which causes the program to exit the while loop surrounding the event structure, and then ends the vi.  For some reason, it causes the executable to hang for several seconds before not responding, and then quitting.

Any ideas?
0 Kudos
Message 4 of 6
(4,023 Views)
Hi,

Could you post a small snippet of your code that demonstrates the issue you are facing now.  That way, I will be able to replicate your issue and see if I have any possibel reasons as to why it is causing the crash.


Regards,

Nadim
Applications Engineering
National Instruments
0 Kudos
Message 5 of 6
(3,999 Views)
I fixed the problem by changing the event to a Panel Close Notify, wiring the Discard to True
so that it does not close, and then adding a vi invoke node to close the front panel.

I still don't know why just a panel close event does not work.
There really is no code in that event, other than to wire a true to stop the while loop,
which ends the program.
Message 6 of 6
(3,991 Views)