Teledyne LeCroy Conquest User Manual - Users Manual User Manual
Page 230
Appendix A
220
GetData
DataId = GetData(StartBit, Length);
Remark:
This statement assigns an identifier to a block of data from the data stream.
You can reference the complete data block elsewhere in the script using the
returned identifier. Unlike the AddField statement, this statement does not
increase the value returned by CURPOS function. Typically this statement is
used to retrieve the value of a field without adding that field to the decode.
Output Parameters:
DataId:
This is the identifier assigned to a data block.
Input Parameters:
StartBit:
Specifies a starting position of the field in the data, in
bits. This parameter can be an integer or an expression.
Length:
Specifies the length of the field, in bits. This parameter
can be an integer or an expression.
Example:
/*This function links the Data from Bit#0 to Bit#9 in a dataId named
DataSegment. */
DataSegment = GetData (0,9);