Teledyne-lecroy Protocol Analyzers File-Based Decoding User Manual Instrukcja Użytkownika Strona 35

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 82
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 34
File-based Decoding User Manual Chapter 9: Context
LeCroy Corporation 29
Chapter 9: Context
The context is the mechanism by which transaction data is passed in and out of the
scripts. There is an output context that is modified by the script, and there are possibly
multiple input contexts that the script is invoked on separately.
A context serves two roles: It functions as a symbol table whose values are local to a
particular transaction, and it functions as an interface to the application.
Two keywords are used to reference symbols in the context: in and out. Dot notation is
used to specify a symbol within a context:
out.symbol = "abcd";
out.type = in.type;
The output context can be read and written to, but the input context can only be read.
Context symbols follow the same rules as local variables: they are created on demand,
and uninitialized symbols always evaluate to null.
Przeglądanie stron 34
1 2 ... 30 31 32 33 34 35 36 37 38 39 40 ... 81 82

Komentarze do niniejszej Instrukcji

Brak uwag