Teledyne LeCroy Conquest User Manual - Users Manual User Manual
Page 240

Appendix A
230
INPUTDATA
INPUTDATA
Remark:
The INPUTDATA is a symbolic representation of the entire data stream that is
passed to the decoder.
Find
Find (StartBit, Pattern)
Remark:
The function searches for a data pattern in the data stream. It returns the bit
location of the first instance of the data pattern, or the value equivalent to
LengthOf(INPUTDATA+1) if the data pattern is not found.
Input Parameters:
StartBit:
Specifies a zero-based start position of the field in the
data, in bits. This parameter can be an integer or an
expression.
Pattern:
Identifies the data pattern for which to search. This
parameter can be an integer or an expression.
LengthOf
LengthOf (DataId | INPUTDATA )
Remark:
The function returns the length of data in bits
Input Parameters:
DataId
Identifier that specifies data block. This identifier is the
output of a GetData statement.
INPUTDATA:
The INPUTDATA function.
Example:
/* Add unknown field if excess data detected. Demonstrates use of EOD,
CURPOS, LengthOf, and INPUTDATA functions */
if (not EOD)
{
Unexpected = AddField(CURPOS,
LengthOf(INPUTDATA) – CURPOS,
"Unexpected","Unexpected Data",
"Unexpected");
}