Resetting an application calls OnReset events. These events are called in one of the following ways:
1. The Rest command is selected from the Run menu of
the IDE. In this case, ATEasy
will abort the application and call the OnAbort
events if the application is running and then call the OnReset
events. Follows the unloading application from memory and re-initialization
(by OnInit events).
Note that this behavior was a change in v7.0 or v6.0 build 134c and above.
In the prior versions, OnReset events were called after the OnInit
events (after the application loaded) :
New Reset actions : OnAbort,
OnReset, Unload App, Load App,
OnInit
Previous actions : OnAbort, Unload App, Load
App, OnInit, OnReset
2. The Reset statement is processed by a running program.
In this case ATEasy
will call only the application OnReset events.
OnReset is often used for debugging from the IDE. It provides a way for application power down and cleaning up drivers before reloading and initializing the system again. Users may want to execute the Reset statement before debugging or before a command such as Doit! to ensure the system and instruments properly being shutdown and initialized.
OnReset events are processed in the sequence as shown in the following table:
Module |
Event |
Usage Examples |
Program |
Output text to the Test Log. |
|
Driver(s)* * in their index order. |
For a test executive program: prompt the user to start another program or close the application; start another program in the application; clean up and save the log. |
|
System |
Un-Initialize the instrument, close handles, etc. |