Reservedcheck(), Incfieldoffset(), Reservedcheck() incfieldoffset() – Teledyne LeCroy USB Script Decode Manual User Manual
Page 72

66
C
HAPTER
14
CATC Scripting Language for USB
USB Decoders
AddSimplePLCell("LID", Format("%d", LID_number ),
tooltip + AddWarningTooltip(error_tooltip), error);
...
If there is an error for the cell, the tooltip will display this text:
LID block number.
!!! WARNING !!!
LID number is out of range
The warning message will be displayed in dark red in dialog view.
Another way to add a warning message to a tooltip is to use the WARNING_SIGN
constant like this:
...
if( error_tooltip != "" )
error_tooltip = WARNING_SIGN + error_tooltip;
ReservedCheck()
ReservedCheck(bits_reserved)
Comments
Makes a check for next bits_reserved bits that are reserved and should be set
to zero. If the bits are not zero, a corresponding warning cell will be shown in
expanded state.
Example
ReservedCheck( reserved_bits );
IncFieldOffset()
IncFieldOffset(len)
Comments
Increments the field offset by designated length (len) and sets the field length
variable equal to len. This is useful when it’s not possible to obtain a field value
using only one GetNBits_ or NextNBits_ command.
Parameter
Meaning
Default Value
Comments
bits_reserved
Parameter
Meaning
Default Value
Comments
len