Documentation Center

  • Trial Software
  • Product Updates


Specify range of data as engineering units


    Note:   You cannot use the legacy interface on 64–bit MATLAB®. See Session-Based Interface to acquire and generate data.

You use UnitsRange to scale your data to reflect particular engineering units.

For analog input objects, the data is scaled while it is extracted from the engine with the getdata function according to the formula

scaled value = (A/D value)(units range)/(sensor range)

The A/D value is constrained by the InputRange property, which reflects the gain and polarity of your analog input channels. The sensor range is given by the SensorRange property, which reflects the range of data you expect from your sensor.

For analog output objects, the data is scaled when it is queued in the engine with the putdata function according to the formula

scaled value = (original value)(output range)/(units range)

The output range is constrained by the OutputRange property, which specifies the gain and polarity of your analog output channels.

For both objects, you can also use the Units property to associate a meaningful label with your data.



AI, AO, per channel



Data type

Two-element vector of doubles

Read-only when running



The default value is determined by the default value of the InputRange or the OutputRange property.

See Also


getdata, putdata


InputRange, OutputRange, SensorRange, Units

Was this topic helpful?