7 using structure variables to assign field values, Using structure variables to assign field values – Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual
Page 89

LeCroy Corporation
UWBTrainer Exerciser - Generation Script Language Reference Manual
81
10.7 Using Structure Variables to Assign Field Values
You can use structure variables in field assignments. Also See Section Using Multipliers to
Assign Field Values.
Examples
Main
{
# Use structure variables to assign field values.
# Declare a 'structure' instance based on the template S1.
$S = S1
# Declare a 'structure' instance based on the template S2
# and change the default value for the S16 field.
$W = S2 { S16 =
2
}
Send
TX_FRAME
{
Data = $S
# Data field contains the payload of structure S
.
}
Send
TX_FRAME
{
# Example of concatenation of structures.
# Data field contains combined payload of structures
S and W
Data = $S + $W
}
}