beautypg.com

Teledyne LeCroy Voyager Exerciser Generation Script Language Manual User Manual

Page 134

background image

Teledyne LeCroy

Voyager USB 3.0 Exerciser Generation Script Language Reference Manual

125

79:

Main

80: {
81: PTraceVarEx ( $Pkt_Var, $Pkt_Var2 )
82:

Send

$Pkt_Var

83: $Pkt_Var { phychnum = alternatechnum }

# Modify $Pkt_Var.

84: PTraceVarEx ( AlternateCHNum, $Pkt_Var )
85:

Send

$Pkt_Var

86:

Send

$Pkt_Var2

87: $Pkt_Var2 = {

01 08 0C 00 05 00 04 00 05 00

}

# Modify $Pkt_Var2.

88: pkt_Var2 =

1

# Declare Local Variable pkt_var2 (note no ‘$’).

89: PTraceVarEx ( $Pkt_Var2, Pkt_Var2 )
90:

if

(pkt_var2 !=

0

) {

Send

$Pkt_Var2 }

91: }

Output Window:

Parsing started: File: C:\Sample_PTraceVarEx.usb3g. Operation Starts at time 05:50:10 PM
Parsing... c:\sample_ptracevarex.usb3g
$PKT_VAR = {FB 02 01 05} - 4 byte(s)

PTraceVarEx( $Pkt_Var, ) from line 81

Template name: TEST_IE_CHSELECT

Fields:

Field : ELEMID

index = 0, offset = 0, length = 8

Value : FB


Field : ELEMLEN

index = 1, offset = 8, length = 8

Value : 02


Field : TMODESUBTYPE

index = 2, offset = 16, length = 8

Value : 01


Field : PHYCHNUM

index = 3, offset = 24, length = 8

Value : 05


$PKT_VAR2 = {01 06 0C 00 01 00 04} - 7 byte(s)

PTraceVarEx( …, $Pkt_Var2 ) from line 81

Template name: BPOIE

Fields:

Field : ELEMID

index = 0, offset = 0, length = 8

Value : 01


Field : ELEMLEN

index = 1, offset = 8, length = 8

Value : 06


Field : BPLEN

index = 2, offset = 16, length = 8

Value : 0C


Field : OCCUPANCY

index = 3, offset = 24, length = 24 (Variable length)

Value : 00 01 00


Field : DEVADDRLIST

index = 4, offset = 48, length = 8 (Variable length)

Value : 04