Teledyne LeCroy Conquest User Manual - Users Manual User Manual

Page 226

Advertising
background image

Appendix A

216

ValidRanges Block

This optional block specifies the legal range of values for the field. At run time,
if the values of the field do not fall within the valid range, a Protocol Error is
generated. The block consists of one or more ValidRanges statements that
applies to all fields and subfields added in the Main block.

ValidRanges

fieldId1 = ( Value1 - Value2 );

.
.
.

fieldIdN = ( Value3 - Value4 );

EndValidRanges

ValidRange Statements

Remark:

Specifies the ranges of values expected for the field. There must be a
separate ValidRanges statement for each field for which to assign a
description.

Input Parameters:

fieldId:

Specifies the field. This identifier is the output of a
AddField statement.

Value:

Specifies the field values for which to apply the given
description string. You must specify the range of values
by identifying the lower range and upper range integers.

Example:

/*F4, F1, BlockID are fields */

ValidRanges

F4=(0x00, 0xAA);

BlockID = (0,32);

F1=(0b00001,0b0101010);

EndValidRanges

Advertising