Teledyne LeCroy LeCroy Analyzers File Based Decoding Manual User Manual
Page 59

File-based Decoding User Manual
Chapter 11: Primitives
LeCroy Corporation
53
AddDataCell()
AddDataCell(
Support
Supported by all LeCroy analyzers.
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 is interpreted as 4 bytes of
data. Specifying _BYTES or _DWORDS in an additional_info field forces data to be
interpreted as bytes or quadlets. _COLLAPSED, _EXPANDED, _HIDDEN and _SHOWN are
all interpreted the same is in a regular AddCell call.
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 );
Parameter
Meaning
Default
Value
Comments
data_value raw, list, or
integer
Interpreted the same way as GetNBits
interprets 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)