Teledyne-lecroy UWBTrainer Exerciser Script Language Bedienungsanleitung Seite 98

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 124
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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 }
}
}
}
Seitenansicht 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 123 124

Kommentare zu diesen Handbüchern

Keine Kommentare