beautypg.com

9 generation procedures, 1 send frame instruction, 2 using local fields in send frame instructions – Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual

Page 44: Generation procedures, Send frame instruction, Using local fields in send frame instructions, Send instru, 9generation procedures

background image

LeCroy Corporation

UWBTrainer Exerciser - Generation Script Language Reference Manual

36

9

Generation Procedures

A generation (or instruction) procedure typically contains a list of generation scenario instructions
and script parser "preprocessor" directives.

• Generation scenario instructions are translated into generation instructions executed by

the UWBTrainer™.device (for example, Send Frame).

• Script

parser

"preprocessor"

directives are executed during parsing and are not sent to

the UWBTrainer (for example, parser arithmetic expressions and loops).

Note: The procedure with the name Main is the entry point of the generation stream and must be
present.

9.1 Send Frame Instruction

To send a frame, write the Send keyword followed by the name of the frame template or frame
variable in the generation procedure and provide a list of parameters that should override the
default instruction parameters, if any.

Note: For information about using frame variables, see the "Declaring frame variables" section.

The script parser constructs a Send Frame instruction based on the frame template or frame
variable, plus the provided parameters, and sends it to UWBTrainer.

Format

# Basic Send instruction

Send

(

Frame Template name | Structure variable name

)

[

{
Field = Value
...
}

( frame delay, superframe offset, absolute time,
nanosecond time adjustment, burst mode switch,
override bitmap, time variable index, blocking )

]

9.2 Using Local Fields in Send Frame Instructions

You can add local fields to Send instructions. You can use them to add to the existing frame
template or structure variable or to override specified offsets within the declared structures. These
local fields only exist for the specific instance of the Send instruction in which they are declared.
The frame template or structure variable remains unmodified and does not retain the local fields
created. (To learn how to retain local fields, see the section “Using Local Fields in Structure
Variables”) With local field
s, you may quickly assign a portion of a larger field using bit offsets or
append information to a specific packet without having to redefine a template. (Local fields are
also applicable to Register Condition Instructions.)