Teledyne-lecroy UWBTrainer Exerciser Script Language Manual de usuario Pagina 98

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 124
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 97
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 }
}
}
}
Vista de pagina 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 123 124

Comentarios a estos manuales

Sin comentarios