beautypg.com

4 structure variable syntax, 1 omitting the send keyword, Structure variable syntax – Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual

Page 50: Omitting the send keyword

background image

LeCroy Corporation

UWBTrainer Exerciser - Generation Script Language Reference Manual

42

9.4 Structure Variable Syntax

Structure variables have a special syntax.

Example

# This syntax instructs the parser to send a frame based on

# some structure variables, avoiding the search for templates.

Send

$(Structure variable name)

[

{
Field = Value
...
}

( parameter1, parameter2, ... )

]

Example

Main

{

# Declare a structure variable based on the template 'TX_FRAME'.

$X = TX_FRAME

# Send a frame based on the template 'TX_FRAME'

# using default values.

Send

$X

}

9.4.1 Omitting the Send Keyword

You can omit the Send keyword if needed (but this is not recommended).

Example

Main

{

# Send a frame based on the template 'TX_FRAME'

# using default values.

TX_FRAME

}