UutRunMode Property (AApp)

Version 8

Returns or sets the specified UUT run mode.

Syntax

[ enRunMode= ] Object.UutRunMode ( iUutIndex )  

The UutLog property syntax has the following parts:

 

Name

Type

Description

Object

AApp

AApp object

iUutIndex

[Val] Long = -1

Optional. The UUT index (0 based). -1 for current UUT.

enRunMode

enumAUutRunMode

Returns or set the UUT run mode: sequential or parallel.

Where

enumAUutRunMode can be one of the following:

 

Name

Value

Description

aUutRunModeSeqential

0 *

Default. Sequential run mode. The UUT runs in the main thread. If multiple UUTs are designated to sequential they will be switched before a program, task or test is started.

aUutRunModeParallel

1

Parallel run mode. The UUT runs in its own thread.

Comments

The run mode specified if the UUT with the specified index will be running in its own thread (parallel) or in the main thread (sequential, default).  When running in sequential mode, it will be running in the main thread and ATEasy will switch (if more than one UUT is sequential between the UUTs according to the UutSwitchLevel Property. If the UUT run mode is parallel it will run in its own thread.

Example

The following example runs 3 UUTs. The first two UUTs in sequential mode (same program and thread) and the third in parallel (second thread):

app.UutCount=3

app.UutProgram(0)=app.Programs(0)

app.UutProgram(1)=app.Programs(0)

app.UutProgram(2)=app.Programs(1)

app.UutSwitchLevel=aUutSwitchLevelTask

app.UutRunMode(0)=aUutRunModeSeqential

app.UutRunMode(1)=aUutRunModeSeqential

app.UutRunMode(2)=aUutRunModeParallel

Run All

Applies to

AApp

See Also

App.StartProgram, App.UutCount, App.UutIndex, App.UutProgram, App.UutSwitchLevel, Program Variable, Run Statement