User`s guide

4 Advanced Procedures
4-30
Normalized Scaling for Analog Inputs
The Real-Time Windows Target allows you to normalize I/O signals internal to
the block diagram. Generally, inputs represent real-world values such as
angular velocity, position, temperature, pressure, and so on. This ability to
choose normalized signals allows you to
Apply your own scale factors
Work with meaningful units without having to convert from voltages
When using an Analog Input block, you select the range of the external
voltages that are received by the board, and you choose the block output signal.
For example, the voltage range could be set to
0 to +5 V, and the block output
signal could be chosen as
Normalized unipolar, Normalized bipolar, Volts,
or
Raw.
If you prefer to work with units of voltage within your Simulink block diagram,
you can choose
Volts.
If you prefer to apply your own scaling factor, you can choose Normalized
unipolar
or Normalized bipolar, add a Gain block, and add an offset to
convert to a meaningful value in your model.
If you prefer unrounded integer values from the analog-to-digital conversion
process, you can choose
Raw.
0 to +5 Volts and Normalized Bipolar
From the Input range list, choose 0 to +5 V, and from the Block output signal
list, choose Normalized bipolar. This example converts a normalized bipolar
value to volts, but you could also easily convert directly to another parameter
in your model.
0 to 5 volts --> ([-1 to 1] normalized + 1) * 2.5