10 loop command, 1 loop = begin, 2 loop = end – Teledyne LeCroy PETrainer Scripting Language Reference Manual User Manual
Page 68: Loop command, Loop = begin, Loop = end, Repeat

Teledyne LeCroy
PETrainer Scripting Language
63
10 Loop Command
This command causes the PETrainer™ BusEngine™ to re-execute a block of commands a predefined
number of times.
Note: Loops require up to 1 us to branch to the beginning of the loop. During this time, script execution is
paused. Internally generated packets, such as SKIP ordered sets, Ack/Nak DLLP packets, and flow
control updates, still occur as programmed.
Loops can be nested up to 4 deep (up to 8 deep for the Summit Z2-16 and Summit Z3-16 Trainers).
10.1 Loop = Begin
This command marks the beginning of the loop.
Parameter
Values
Default
Comment
Count
0:65535
Infinite
Specifies how many times to repeat the loop.
Setting Count to 0 causes an infinite loop.
10.2 Loop = End
This command marks the end of the loop.
Example:
Loop = Begin { count = 10 }
Packet = TLP { TLPType = CfgRd0 Length = 1 Register = 0 }
Loop = End