Abort Statement

Stops program execution.

Syntax

Abort [ All | Uut lUutIndex]

Comments

This statement may be used to abort program execution when a critical failure occurs which makes it meaningless to continue with the testing . The Abort statement will cause any OnAbort events to be executed to allow the shutdown to occur in as orderly a manner as possible.

In ATEasy v8 the All and Uut optional clauses were added to support multiple UUT execution. The All is used to mark all UUTs as pending abort. If you need to abort specific UUT use the optional UUT keyword followed by the index of the UUT (0 based number, similar to App.UutIndex) you want to abort. When ATEasy switches to the UUT marked for abort the UUT OnAbort sequence will start and after it's complete, the UUT will not be switched to anymore until the rest of the UUTs are complete.   

Example

If dCurrent > dShortCircuit then

Abort

Endif

See Also

OnAbort Event, Abort Events, About Module Events, App.UutIndex