Functions – Teledyne LeCroy User-Defined Decoding (UDD) Advanced Script Language (ASL) Reference Manual User Manual
Page 21

18
Functions
LengthOf ( Data )
Remark
This function returns the length of Data.
Parameters
Data can be INPUTDATA or can be DataId of a data segment specified in the GetData statement
or can be a fieldId specified in AddField. If you pass INPUTDATA as parameter, this function
returns length of all input data passed to script for decoding.
StartOf ( FIELDIdentifier )
Remark
This function returns the start position of the field specified by FieldIdentifier.
Parameters
FieldIdentifier is the Id of a field that has been described in AddField statement.
ValueOf ( Identifier )
Remark
This function returns the value of the Identifier. When you need to know value of a field (or data
segment specified by the GetData statement), you can call this function.
Parameters
Identifier is the Id of a field that has been described in AddField statement or DataId described in
GetData Statement.
Find (StartBit, Value)
Remark
This function searches in input data from the given start bit for specified value. It returns the first
position of the first found value. If value is not found, it returns LengthOf(INPUTDATA) + 1.
Parameter
StartBit specifies the start bit position from which you want to search to end of input data. Value of
this parameter can be an Expression.
Value is the item to be searched for in this call. Value can be a constant BIN or HEX number or can
be an expression. .