beautypg.com

16 loop instruction, Loop instruction, Loop instru – Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual

Page 72

background image

LeCroy Corporation

UWBTrainer Exerciser - Generation Script Language Reference Manual

64

9.16 Loop Instruction

You can run some code in a loop, a limited or unlimited number of times.

Format

Loop

[

( counter )

]

[

{

instruction_1

...

instruction_n

}

]

Note: If the counter parameter is omitted or set to INFINITE, the loop is executed infinitely. You
can use BreakLoop instruction to break loop code execution and jump the next after Loop
instruction.

Example

Main

{

Loop( 100 )

# Run the instructions below 100 times.

{

Send

TX_FRAME

Send

TX_FRAME

}

# Run an infinite loop. User interaction is required to break it.

Loop

{

Send

TX_FRAME

Send

TX_FRAME

}

}