Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual
Page 71

LeCroy Corporation
UWBTrainer Exerciser - Generation Script Language Reference Manual
63
Examples
Main
{
ConditionRegisterWMRxFrame( HDR_COND )
{
# Header Mask/Match
PLCP
{
DestAddr =
0xAABB
SrcAddr =
0xBEEF
}
}
# Wait for condition.
Wait( HDR_COND, HDR_COND1, 2000 )
# Check that ANY condition in the condition list is true
.
If_Condition( HDR_COND )
{
# Do something.
}
# Check that ANY condition in the condition list is true.
# Same as If but clearer for multiple conditions
If_Any( HDR_COND, HDR_COND )
{
# Do something
.
}
# Check that ALL conditions in the condition list are true.
If_All( HDR_COND, HDR_COND2 )
{
# Do something.
}
# Example with 'else' statement
if_condition( HDR_COND )
{
# Do something.
}
else_condition
{
# Do something else.
}
}