Reset Statement

Resets the running program.

Syntax

Reset  [ All | Uut lUutIndex]

Comments

This statement calls the OnReset event of the application modules. After the events were called the next statement following the reset statement is executed.

The sequence of OnReset event called is as follows:

  1. Program.OnReset (if a program is currently running)

  2. Driver(i).OnReset

  3. System.OnReset

In ATEasy v8 the All and Uut optional clauses were added to support multiple UUT execution. The All keyword is used to mark all UUTs as pending reset. If you need to reset specific UUT use the optional UUT keyword followed by the index of the UUT (0 based number, similar to App.UutIndex) of the UUT you want to reset. When ATEasy switches to the UUT marked for reset the UUT OnReset sequence will start.   

Example

The following code is the OnClick event for the mnuReset menu item in the MainForm form which allows the user to control the application:

! MainForm.mnuReset.OnClick

print "-- Resetting application --"

Reset

See Also

Abort, OnReset, AProgram.Reset, Reset Events, About Module Events, App.UutIndex