Teledyne-lecroy Protocol Analyzers File-Based Decoding User Manual Bedienungsanleitung Seite 57

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 82
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 56
File-based Decoding User Manual Chapter 11: Primitives
LeCroy Corporation 51
Example
# Create a regular cell named Normal with a value "Cell" and
tool tip "Normal cell":
AddCell( "Normal", "Value1", "Normal cell" );
# Use the _MONOCOLOR value in the additional_info parameter to
create a cell with
a color value of 0x881122 in both the name
and value fields:
AddCell( "MonoColor", "Value2", "MonoColor cell", 0x881122,
_MONOCOL
OR );
# Use the _MONOFIELD value to create a cell with only a name
field:
AddCell( "MonoField", "Value3", "MonoField cell", [255, 200,
200], _M
ONOFIELD );
# Use the _ERROR value to create a cell with a red value field:
AddCell( "Error", "Value4", "Error cell", 0xcc1155, _ERROR );
# Use the _WARNING value to create a cell with a yellow value
field:
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", 0
x001122, [_FIXEDWIDTH, 20], _ERROR );
The output of the example is:
Figure 11.1 Example: Output for AddCell
Seitenansicht 56
1 2 ... 52 53 54 55 56 57 58 59 60 61 62 ... 81 82

Kommentare zu diesen Handbüchern

Keine Kommentare