OnEndSwitchUut Event (AProgram, ADriver, ASystem) |
Version 8 |
Occurs before the application switches to the next UUT.
Object.OnEndSwitchUut ( )
The OnEndSwitchUut event syntax has the following parts:
Name |
Type |
Description |
Object |
AProgram, ADriver, ASystem |
Module object |
The OnEndSwitchUut event occurs before ATEasy switches a program from one UUT to another. For sequential (see App.UutRunMode) UUTs ATEasy will switch UUT according to the value set to the App.UutSwitchLevel property. For parallel UUTs the event is only called once at the end of the program execution. Following this event, if there are more UUT to run ATEasy will switch to the next UUT and will call its OnInitSwitchUut Event.
Use this event to implement special switching, setting up of variables or user interface to prepare to the new UUT.
The OnEndSwitchUut events apply to the Program, System and Driver modules, ATEasy will call first the System and then the System Drivers (in reverse order), and the Program.
Use this event to implement special switching, cleaning up of variables or user interface to prepare to the new UUT.
The procedure can also be used to set the next UUT index by setting the value of the App.UutNextIndex Property.
The OnEndSwitchUut events apply to the Program, System and Driver modules, ATEasy will call the Program and then the System Drivers, and the System as shown here (output from ATEasy ModuleEvents example):
* Program.OnEnd
* Driver2.OnEndProgram
* Driver1.OnEndProgram
* System.OnEndProgram
Stop time... : 11/8/2010 4:25:16 PM
Elapsed time : 0.07 minutes
UUT Status.. : -
Signature : ....................
================================================================================
* Program.OnEndSwitchUut
* Driver2.OnEndSwitchUut
* Driver1.OnEndSwitchUut
* System.OnEndSwitchUut
* System.OnEndSystem
* Driver2.OnEnd
* Driver1.OnEnd
* System.OnEnd
The following example open a specific relay before a UUT switched to another:
Program.OnEndSwitchUut()
{
! ... set switching accordingly
RELAY Open(App.UutIndex*10)
}
App.OnInitSwitchUut, App.UutCount, App.UutIndex, App.UutNextIndex, App.UutRunMode, App.UutSwitchLevel, App.UutLog, App.UutProgram, End Events, About Module Events