Teledyne-lecroy PETrainer Scripting Language Reference Manual Instrukcja Użytkownika Strona 50

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 89
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 49
Teledyne LeCroy PETrainer Scripting Language
45
Example 2:
This example shows how to use definitions in the expressions (see Page 65) and how to redefine the
values.
Config = Definitions {
READ_START = 0x10
}
; Repeat 10 times.
Repeat = Begin {
Count=10
Counter = i
}
; Send TLP using repeat counter (i) and
; READ_START to specify the address.
Packet = TLP {
TLPType = CfgRd0
Register = ( READ_START + ( 4 << i ) )
}
Repeat=End
; Redefine READ_START, now READ_START is 0x40.
Config = Definitions
{
READ_START = ( READ_START + 0x30 )
}
; Send TLP using READ_START to specify the address.
Packet = TLP {
TLPType = CfgRd0
Register = READ_START
}
Przeglądanie stron 49
1 2 ... 45 46 47 48 49 50 51 52 53 54 55 ... 88 89

Komentarze do niniejszej Instrukcji

Brak uwag