Occurs when the application has finished and before drivers are finished.
Object.OnEndSystem()
The OnEndSystem event syntax has the following parts:
Name |
Type |
Description |
Object |
ASystem |
ASystem object |
The OnEndSystem events apply to the System module. If the event procedure does not contain code then ATEasy will not call the event.
The OnEndSystem events are called before the application is about to exit and before the system drivers OnEnd events are called. This can happen after the program finished, or after the application was aborted.
The following list shows the order of OnEndSystem event combined with default output (see ModuleEvents.prj example for more information):
* Program.OnEnd
* Driver2.OnEndProgram
* Driver1.OnEndProgram
* System.OnEndProgram
Stop time... : 1/26/2010 12:14:14 PM
Elapsed time : 0.00 minutes
UUT Status.. : -
Signature : ....................
================================================================================
* System.OnEndSystem
* Driver2.OnEnd
* Driver1.OnEnd
* System.OnEnd
Use the OnEndSystem events to perform cleanup and to turn off instrument power before the application is exited. You can also redirect ATEasy to ignore and not to exit by running another program, task or test using the Run, Task and Test statements. If the event returned normally (not ignored) ATEasy will continue to call all the OnEnd events for other module and will exit the application (similar to the exit statement).
The following is an example of one way to use the OnEndSystem event:
System.OnEndSystem()
{
! ... system cleanup code ...
print "System has cleaned up after end of execution, but drivers are still active."
}