beautypg.com

Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual

Page 4

background image

LeCroy Corporation

UWBTrainer Exerciser - Generation Script Language Reference Manual

iv

8.5

Frame Template Multi-byte Field Byte Order Attribute................. 32

8.5.1

Big Endian Byte Order................................................................. 32

8.5.2

Another Example ......................................................................... 33

8.6

Structure Declaration Examples ...................................................35

9

GENERATION PROCEDURES ............................................36

9.1

Send Frame Instruction ................................................................36

9.2

Using Local Fields in Send Frame Instructions ............................36

9.3

Instruction Parameters .................................................................38

9.4

Structure Variable Syntax.............................................................42

9.4.1

Omitting the Send Keyword......................................................... 42

9.5

Changing a Generation Setting ....................................................43

9.6

Register Condition Instructions.....................................................44

9.6.1

Register Rx Frame Header+Payload Condition Instruction ........ 44

9.7

Timer Instructions .........................................................................50

9.7.1

Start Timer Instruction ................................................................. 50

9.7.2

Stop Timer Instruction ................................................................. 51

9.7.3

Reset Timer Instruction ............................................................... 51

9.7.4

Sleep Instruction .......................................................................... 52

9.8

Revoke Condition Instruction........................................................53

9.9

Reset Condition Instruction ..........................................................54

9.10

Wait Instructions ...........................................................................55

9.11

Until Instructions ...........................................................................56

9.12

Wait for the Next SuperFrame Instruction ....................................58

9.13

TxSleep Instruction .......................................................................59

9.14

Wait Frame Shortcut Instructions .................................................60

9.15

If Instructions ................................................................................62

9.16

Loop Instruction ............................................................................64

9.17

BreakLoop Instruction...................................................................65

9.18

Exit Instruction ..............................................................................66

9.19

Analyzer Control Instructions........................................................67

9.19.1

StartRecording Instruction ........................................................... 67

9.19.2

StopRecording Instruction ........................................................... 68

9.19.3

TriggerAnalyzer instruction.......................................................... 69

9.19.4

Trace Instruction .......................................................................... 69

9.19.5

Trace_B Instruction ..................................................................... 70

10 ADVANCED SCRIPT PARSER FEATURES........................71

10.1

Local Numeric Parser Variables ................................................... 71

10.2

Local Structure Parser Variables..................................................72

10.3

Using Local Fields in Structure Variables.....................................74

10.4

Changing Structure Parser Variables ........................................... 75

10.5

Sending Frames using Structure Variables..................................79

10.6

Using Special Data Pattern Creators in Field Assignments ......... 80

10.7

Using Structure Variables to Assign Field Values ........................81

10.8

Using Multipliers to Assign Field Values ......................................82

10.9

Using the Append Operator in Field Assignments .......................83

10.10

Initializing Struct Variables from Hex Streams .............................84

10.10.1

Assignments for Variables with Fixed-length Fields............... 84

10.10.2

Assignments for Variables with Variable Length Fields ......... 85

10.11

Sizeof Operators...........................................................................87

10.12

Preprocessor Integer Arithmetic ...................................................88

10.13

Preprocessor If Operator ..............................................................89

10.14

Preprocessor Loop Operators ......................................................90

10.15

Forward Declarations ...................................................................91

10.16

RAND Token.................................................................................92