
LeCroy Corporation UWBTrainer Exerciser - Generation Script Language Reference Manual
90
10.14 Preprocessor Loop Operators
Note: Loop operators can produce a huge number of instructions. Therefore, you should set a
maximum allowed limit for the total number of loop iterations in a generation script. To do this,
use the MaxLoopIterCount parser setting.
Examples
Main
{
k = 0
# 'while' loop operator.
while( k < 4 )
{
k++
# Skip the remaining part of the loop iteration.
if( k == 2 ) { skip_iteration }
# Stop the loop.
if( k == 3 ) { stop_loop }
Send TX_FRAME
{
SrcAddr = 0xEEEE
DestAddr = 0xBBBB
# Data pattern uses preprocessor variables.
Data = { k k k k k }
}
}
# 'for' loop operator.
for( k = 0, k < 10, k++ )
{
# Skip the remaining part of the loop iteration.
if( k == 2 ) { skip_iteration }
# Stop the loop.
if( k == 4 ) { stop_loop }
Send TX_FRAME
{
SrcAddr = 0xEEEE
DestAddr = 0xBBBB
# Data pattern uses preprocessor variables.
Data = { k k k k k }
}
}
}
Comentarios a estos manuales