Hi,
The VI that you are testing would be useful. Make sure that the peace of code where Quit LabVIEW function does get executed. Maybe you have it in a loop that doesn't get called because of some other process. Or you have it outside of a loop that doesn't exit until you stop the VI.
If you just want to stop a VI, and not have to close LabVIEW, you should use methods and properties of that VI. For example, Close After Call method will not abort the VI but will close its windows.
You can also change the window appearance, under VI Properties, so that the front panel window gets closed after the VI is done executing.
The attached VI makes sure that you properly close a VI.
This example enables a VI to detect when you are attempting to improperly close
the VI using the close box, system menu, or Alt+F4. It then executes LabVIEW code to properly shutdown the VI or cancels the exit command. Normally, VIs simply abort if the close box is clicked. The VIs included in this example will only work on 32-bit Windows systems.
As of LabVIEW 6.1 this functionality is incorporated into the Event Structure as a VI and/or Application Level Event.
Zvezdana S.
National Instruments