RANGE

The RANGE command is used with several analog input sensors to re-map the internal ADC (Analog to Digital Converter) range of 0 to 16383 (14-bit ADC values) to a floating point range specified as the parameters to this command, along with the sensor to which the range is applied. The format for setting the range of a sensor is RANGE sensor [i] minimum maximum. To remove/reset to default the range from a given sensor, set the minimum and maximum value to zero. The minimum value must be less than the maximum value when setting a valid range.

A sensors current range, if present, can be obtained by READ sensor [i] RANGE. A two-element list of numbers in the form { minimum, maximum } will be returned.

Note: If no range has been applied to the sensor, an error will be returned if an attempt to read the sensor range is performed .

An individual sensors averaging value may be obtained by READ sensor [i] RANGE.

RANGE 'something' (for analog devices, maps ADC range from 0 to 16383 to the range specified, min < max, min, max any values.)

Commands for RANGE

CE Calculators

TI‑Nspire™ CX