beautypg.com

Global variables, Globals set in decodertools2.inc – Teledyne LeCroy USB Script Decode Manual User Manual

Page 67

background image

61

C

HAPTER

14

CATC Scripting Language for USB

USB Decoders

...
tooltip = normal_tooltip + WARNING_SIGN +
error_tooltip;
Add...Cell( caption, value, tooltip, _ERROR );
...

Global Variables

Globals set in DecoderTools2.inc

val = 0

# global buffer for keeping temporary values

of any type.

str = ""

# global buffer for keeping temporary values

of presumedly string type.

base_tooltip = ""

# global buffer for keeping

temporary values of presumedly parts of tooltips.

ViewAll = 0

# global variable that keeps View All

fields parameter of currently decoded attribute --
this variable is the set attribute decoder responsible
for decoding of the current attribute.

HideAll = 0

# global variable that keeps Hide All

fields parameter of currently decoded attribute --
this variable is the set attribute decoder responsible
for decoding of the current attribute.

Prefix = ""

# global variable that keeps the prefix,

which is a kind of identifier for the decoder
responsible for decoding of the current attribute.

VS = []

# global variable that stores the View setting

of the cell currently being shown. It can be used only
as a list of two values: [ show_in collapsed, show in
expanded ]. When show_in collapsed > 0, it means that
the current cell will be shown in collapsed state;
otherwise, it will be hidden. show in expanded means
the same, but for expanded state only.

# The following variables are specific to dialog view: