10-13-2014 05:05 AM
Hi,
I have created a VI with Exit button using run time menu option
When I run same VI and click on Exit button, it popups a message with Quit or cancel options
Then I created .exe for the same VI and executed, when i click on exit button it is directly quitting labview with out any popup message
Can some one help me in creating .exe with quit/cancel popup message
Thanks in advance
10-13-2014 07:27 AM
Have any code to show us? It is really hard to figure out where you went wrong without any code.
10-13-2014 07:50 AM
Hi Thanks for the reply
Here I attached a sample code, please have a look
10-13-2014 09:30 AM
That dialog is unique to the development environment. It has no meaning in a run time environment. It basically is an "abort function".
You can easily create you own two-button dialog to simulate it. Maybe make your own run-time menu entry for it instead.
10-13-2014 12:58 PM
Oh, you are calling the LabVIEW IDE's Exit. Do not do that. With that you are aborting any running VIs (ie, not letting them stop on their own) and shutting down LabVIEW.
I recommend you use an Event Structure to handle the pressing of the exit menu item and doing whatever you need to inside that event case.
10-14-2014 02:19 AM
Hi, Thanks for the reply
Event structure waits till the current event gets completed, but i want the labview to exit immediately when i click on Exit button with popup message
Actually m updating an existing code, Existing code was working fine with Exit option
Updated code is having this problem, coding wise m sure its fine, may be there is a mistake in settings