Teledyne-lecroy UWBTrainer Exerciser Script Language Instrukcja Użytkownika Strona 98

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 124
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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 }
}
}
}
Przeglądanie stron 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 123 124

Komentarze do niniejszej Instrukcji

Brak uwag