beautypg.com

Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual

Page 49

background image

LeCroy Corporation

UWBTrainer Exerciser - Generation Script Language Reference Manual

41

# Register an RxFrame condition and keep the timestamp of

# the condition event in Time variable #1.

RegRxFrmCondition( HDR_COND, TimeVar =

1

)

{

# Header Mask/Match

PLCP

{

DestAddr =

0xAABB

SrcAddr =

0xBEEF

}

}

# Register a Timer condition and keep the timestamp of

# the condition event in Time variable #1.

StartTimer (

2000,

TimeVar =

1

)

# Wait for any condition to occur.

Wait ( HDR_COND, TIMER )

# Send frame 100 us after either a timer or RxHdr event occurs.

# Note that both conditions specify the same Time variable index:

# No matter which condition event happens first, the Time variable

# keeps the timestamp of either of them.

Send

TX_FRAME( TimeVar =

1

, Delay =

100

)

{

DestAddr =

0xAABB

SrcAddr =

0xEFBE

}

}