Specify range of data as engineering units
Note: You cannot use the legacy interface on 64-bit MATLAB®. See About the Session-Based Interface to acquire and generate data on a 64-bit MATLAB.
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
which reflects the gain and polarity of your analog input channels.
The sensor range is given by the
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
according to the formula
scaled value = (original value)(output range)/(units range)
The output range is constrained by the
which specifies the gain and polarity of your analog output channels.
For both objects, you can also use the
to associate a meaningful label with your data.
AI, AO, per channel
Two-element vector of doubles
Read-only when running
The default value is determined by the default value of the