5 sending frames using structure variables, Sending frames using structure variables – Teledyne LeCroy Voyager Exerciser Generation Script Language Manual User Manual

Page 110

Advertising
background image

Teledyne LeCroy

Voyager USB 3.0 Exerciser Generation Script Language Reference Manual

101

10.5 Sending Frames using Structure Variables

You can send a packet based on some packet variable.

Examples

Main

{

# Send a packet based on the packet variable X using overridden values.
# Note: Packet variable X field values are NOT changed.
# '$' may be omitted after the 'Send' keyword,
# but if there is a template X, it is used instead of
# the structure variable X.

Send

X

{
StreamID =

2

DevAddr =

0x12

Endp =

3

Data = {

AA BB CC DD 12 34 56 78

[PATTERN_2] }

}

# '$' explicitly indicates that you want to send a packet

# based on the structure variable X.

Send

$X

{
StreamID =

2

DevAddr =

0x12

Endp =

3

Data = {

AA BB CC DD 12 34 56 78

[PATTERN_2] }

}

# Short syntax.

# Send a packet based on the packet variable X having delay 50 ns

X (

50

)

}

Advertising