beautypg.com

Teledyne LeCroy UWBTracer User Manual User Manual

Page 265

background image

UWBTracer/Trainer User Manual

Chapter 15: Creating and Editing Generation Files

LeCroy Corporation

247

Step 10Add the Main generation procedure, such as the following example:

Main

{

# parser numeric variables

dest_address = 0x0080

host_address = 0xBEEF

endpoint = 4

direction = IN

# parser for loop

for( i = 0, i < 2, i++ )

{

# parser If directive

if( i == 1 )

{

host_address = 0xABCD

endpoint = 5

}

# parser Call of another generation procedure

Call Inquiry( host_address, dest_address,

endpoint, direction )

}

}

Note: You can use the Text Snippets on the left Text Snippets panel to add
commands and their parameters.