Initialization Events

Initialization events are processed in the sequence shown in the following table:

 

Module

Event

When Processed

Usage Examples

System

OnInit

Before anything else, when the application is started.

Perform any initialization processes for the entire application before drivers are initialized. Output text to the Test Log describing the application.

Driver(s)

OnInit

After System OnInit, in the order of the drivers listed in the System.

Initialize the instrument driver before the application uses it. For a test executive driver, initialize the user interface.

System

OnInitSystem

After the Drivers OnInit events are called, allowing an opportunity for processing before a program starts.

If necessary, reinitialize driver, overriding driver initialization. Use driver to set instrument to a known state before a program starts.

System then, Drivers(s) then, Program

OnInitSwitchUut (v8)

Depends on the  App.UutSwitchLevel, may be called before program, task or a test initialization.

initialize instruments and global variables to prepare for new UUT program, task or test execution.

System

OnInitProgram

When any program in the application starts.

Output text to the Test Log describing the program.

Driver(s)

OnInitProgram

When any program in the application starts.

For a test executive driver, initialize the user interface or modify it based on user input.

Program

OnInit

When the program starts.

Initialize user interface for program.

System

OnInitTask

When a task starts.

Output text to the Test Log describing the task.

Driver(s)

OnInitTask

When a task starts.

For a test executive driver, initialize or modify user interface based on user input or the results of the previous test.

Program

OnInitTask

When a task starts.

Output text to the Test Log describing the task.

System

OnInitTest

When a test starts.

Output text to the Test Log describing the test.

Driver(s)

OnInitTest

When a test starts.

For a test executive driver, initialize or modify user interface based on user input or the results of the previous test.

Program

OnInitTest

When a test starts.

Output text to the Test Log describing the test.