
Teledyne LeCroy PETrainer Scripting Language
65
11.1 Repeat = Begin
This command marks the beginning of the code being repeated.
Values of Infinite and 0 are not
supported
11.1.1 Counter Parameter
Any string literal can be used for the Counter parameter.
The value of the Counter parameter can be used within the Repeat statement (i.e., between
Repeat=Begin and Repeat=End) in arithmetic expressions for any parameter, except the parameters
that require the array data type (such as Payload for TLP packet).
The value of the Counter parameter changes from 0 to the value of the Count parameter minus one.
Arithmetic expressions must be included in round brackets (parentheses).
The operators are: +, -, *, /, <<, >>, &, |, ~.
Example 1:
Within this repeat, ppp can be used in arithmetic expressions for any packet field. The value of ppp
changes from 0 to 3 in the example.
The Tag parameter accepts the values 0x10, 0x11, 0x12, and 0x13.
The AddressHi parameter accepts the values 0x00400000, 0x00400001, 0x00400001, and
0x00400002.
Repeat = Begin { Count = 4 Counter = ppp }
Packet = TLP {
TLPType = MRd64
Tag = ( ppp + 0x10 )
AddressHi = ( 0x400000 + 4 / ( 5 - ppp ) )
}
Repeat = End
Komentarze do niniejszej Instrukcji