beautypg.com

14 loop instruction, Loop instruction, Loop – Teledyne LeCroy Voyager Exerciser Generation Script Language Manual User Manual

Page 94

background image

Teledyne LeCroy

Voyager USB 3.0 Exerciser Generation Script Language Reference Manual

85

9.14 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 the BreakLoop instruction to break loop code execution and jump to the next command

after the Loop instruction.

Example

Main

{
Loop( 100 )

# Run the instructions below 100 times.

{

Send

TX_PACKET

Send

TX_PACKET

}

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

Loop
{

Send

TX_PACKET

Send

TX_PACKET

}
}