LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Close Tag Engine

Hi,
I'm using Labview 7.1 and the DSC module. I'm opening the Tag Engine when my application is starting. When I'm closing my application I like to close tha Tag engine, too. I tried it with the "Engine Shutdown.vi" and with all input parameters, but I always get a window which I have to confirm.
Is there any option to close the Tag Engine automaticly with the application?

Thanks,
Martin
0 Kudos
Message 1 of 4
(2,935 Views)
Try unchecking Show shutdown prompt. I'm not sure if this will help, because I have it checked and when I send a Quit command to the engine, it closes immediately. I think this is only supposed to apply to manual shutdown.
What does this window you're getting say? Is it the standard "are you sure you want to close" window, or does it say "you still have things open, maybe you should close them first"?

___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(2,933 Views)
Hi,
I geht a message: Close Tag Engine with an marked Check button
and two buttons Quit and Cancel.
If I close my application I get this message always. It doesn't matter if I use "Stop engine", "Quit engine" or "Don't shutdown".
0 Kudos
Message 3 of 4
(2,927 Views)

@horn wrote:
I get a message: Close Tag Engine with an marked Check button and two buttons Quit and Cancel.
If I close my application I get this message always. It doesn't matter if I use "Stop engine", "Quit engine" or "Don't shutdown".


Things may have changed in DSC 7.1, but here's a try:
Are you programmatically ending your application (using the "Quit LabVIEW" function) in your code or are you manually trying to quit LabVIEW immediately after your VI(s) stops executing?

The 'Show Shutdown Prompt" option mentioned by tst (Tools>D&SC>Options…) specifies whether the "Stop and Close Tag Engine" dialog automatically appears when quitting LabVIEW (automatically or manually) while the Tag Engine is still loaded in memory. And it takes a bit of time for the Engine to stop and unload from memory (~5 to 10 seconds).

You can get rid of the prompt a couple of ways:

- turn off the 'Show Shutdown Prompt" option as tst suggested while keeping the "Force Engine Shutdown when LabVIEW Exits" option on;
OR
- if you are quitting your application programmatically, insert a small while loop which uses Get Engine Status.vi to monitor whether the Tag Engine is still loaded before quitting LabVIEW.
=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 4 of 4
(2,905 Views)