UutNextIndex Property (AApp) |
Version 8 |
Returns or sets the next UUT to run when a UUT switch occurs.
Object.UutNextIndex [ = lUutIndex ]
The UutNextIndex property syntax has the following parts:
Name |
Type |
Description |
Object |
AApp |
AApp object |
lUutNextIndex |
Long |
The next UUT index to be switched to when the current UUT switched. |
This UutNextIndex property is used when testing multiple UUT at the same time. This number is in the range of 0 and UutCount property.
Setting the UutNextIndex property can be used to skip or redirect ATEasy to run specific UUT index. By default ATEasy will set the value of this property to the next UUT before calling to OnInitSwitchUut Event. The actual switch is done according to the UutSwitchLevel property.
The following statement set the next UUTindex to the next one have PASS status:
for i=app.UutIndex+1 to app.UutCount-1
if app.UutProgram(i).Status<FAIL
app.UutNextIndex=i
return
endif
endif
for i=0 to app.UutIndex
if app.UutProgram(i).Status<FAIL
app.UutNextIndex=i
return
endif
endif
abort all
App.UutCount, AApp.UutIndex, AApp.UutLog, AApp.UutProgram, App.UutSwitchLevel, AProgram.UutIndex