Teledyne-lecroy USB Script Decode Manual Instrukcja Użytkownika Strona 48

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 90
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 47
42
CHAPTER 12
CATC Scripting Language for USB Decoder Primitives
Example
# Creates a data cell with 2 dwords (32-bit integers)
of data.
AddDataCell( '0123456789ABCDEF', _DWORDS );
# Creates a data cell with 4 bytes. Integer data
values are always interpreted as 32 bits of data.
AddDataCell( 0x11223344, _BYTES );
The output of the example is:
AddEvent()
AddEvent(<Group string>, <Value string>)
Return value
None.
Comments
Events are used for transaction searching and for transaction summary. This
function is only effective when called during the ProcessData() phase of
decoding. Event groups and values are stored globally for transaction levels and
new ones are created as they are encountered. Each transaction contains informa-
tion as to which events were associated with it.
Example
AddEvent( "DataLength", Format( "%d",
out.DataLength ));
Figure 12-2: Example output for AddDataCell
Parameter Meaning Default Value Comments
Group string Thenameof
the group
Corresponds to the name of a field that might be
encountered while decoding.
Val ue string A value that
will be
associated
with the group
Corresponds to a field value that might be
encountered while parsing.
Przeglądanie stron 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 89 90

Komentarze do niniejszej Instrukcji

Brak uwag