Teledyne-lecroy CATC Scripting Language Reference Manual Manual do Utilizador Página 44

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 57
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 43
C
HAPTER
12
Decoder Primitives
CATC Scripting Language
40
AddCell( "Warning", "Value5", "Warning cell",
0x00BB22, _WARNING );
# Use the [_FIXEDWIDTH, w] value to create a cell with
a fixed width of 20 in conjuction with the error value
to create a fixed width cell with a red value field:
AddCell( "Fixed Width 20", "Value6", "Fixed Width and
Error cell", 0x001122, [_FIXEDWIDTH, 20], _ERROR );
The output of the example is:
Figure 12-1: Example output for
AddCell
AddDataCell()
AddDataCell(<data_value raw, list or integer>,
<additional_info any>, ...)
Parameter Meaning Default Value Comments
data_value raw, list, or
integer
Interpreted the same way as GetNBits inter-
prets data_source
additional_info any Used to create special cells or to modify cell
attributes. Possible values are:
_BYTES
_COLLAPSED
_DWORDS
_EXPANDED
_HIDDEN
_SHOWN (default)
Return value
None.
Comments
Creates an expandable/collapsible cell for viewing raw data such as data payloads.
Data can be raw bytes, an integer, or a list. If an integer is used, it will be interpreted
as 4 bytes of data. Specifying _BYTES or _DWORDS in an additional_info
field will force data to be interpreted as bytes or quadlets. _COLLAPSED,
_EXPANDED, _HIDDEN and _SHOWN are all interpreted the same is in a regular
AddCell call.
Vista de página 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 56 57

Comentários a estes Manuais

Sem comentários