beautypg.com

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

Page 87

background image

LeCroy Corporation

UWBTrainer Exerciser - Generation Script Language Reference Manual

79

10.5 Sending Frames using Structure Variables

You can send a frame based on some frame variable.

Examples

Main

{

# Send a frame based on the frame variable X using overridden values.

# Note: Frame 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

{

FrameType =

2

DestAddr =

0xAABB

SrcAddr =

0xEFBE

Data = {

AA BB CC DD 12 34 56 78

[PATTERN_2] }

}

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

# based on the structure variable X.

Send

$X

{

FrameCtrl =

0xC018

# Assign the whole multi-byte field.

SeqCtrl =

0x1234

# Assign the whole multi-byte field.

}

# Short syntax.

# Send a frame based on the frame variable X having delay 50 us

X (

50

)

}