Hello all
I wrote an application (LV 7.0) using a queued state machine. For the most part elements are enqueued in an event-structure.
As a part of the program I write acquired data into a database (local). This DB is copied to a network-drive when the program is started and regularly finished (using an "Exit"-Button on the front panel). The user often shuts down the system without exiting the program, so the DB is not saved. To avoid this loss of data I use the event "Application Exit?". After enqueueing a "Exit"-element I wait for the "Exit"-Case (which is the same as if the Exit-button was pressed) to be executed. Afterwards SilentShutdown is set True and Discard is set false.
To test this functionality I ran the program an
d shut down the system (WinXP). The program finishes as expected and the DB is copied to the network-drive.
Although the program has finished correctly the system does
not shut down and I have to shut it down once more.
Does anyone know how to fix this problem?
Thanks for your help.
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------