| Data Acquisition Toolbox™ | ![]() |
You use SensorRange to scale your data to reflect the range you expect from your sensor. You can find the appropriate sensor range from your sensor's specification sheet. For example, an accelerometer might have a sensor range of ±5 volts, which corresponds to ±50 g's (1 g = 9.80 m/s/s).
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 hardware channels. The units range is given by the UnitsRange property.
Usage | AI, Channel |
Access | Read/write |
Data type | Two-element vector of doubles |
Read-only when running | No |
The default value is determined by the default value of the InputRange property.
![]() | Sending | StartFcn | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |