Real-Time Windows Target | ![]() ![]() |
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
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
.
Choose 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.
In your block diagram, you can do this as follows.
Choose 0 to +5 Volts and Normalized Unipolar
From the Input range list, choose 0 to +5 V
, and from the Block output signal list, choose Normalized unipolar
. This example converts a normalized unipolar value to volts, but you could also easily convert directly to another parameter in your model.
In your block diagram, you can do this as follows.
Choose -10 to +10 Volts and Normalized Bipolar
From the Input range list, choose -10 to +10 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.
In your block diagram, you can do this as follows.
Choose -10 to +10 Volts and Normalized Unipolar
From the Input range list, choose -10 to +10 V
, and from the Block output signal list, choose Normalized unipolar
. This example converts a normalized bipolar value to volts, but you could also easily convert directly to another parameter in your model.
In your block diagram, do this as follows.
Normalized Scaling for Analog Outputs
Analog outputs are treated in an equivalent manner to analog inputs.
If the voltage range on the D/A converter is set to 0 to +5 volts
, and the Block input signal is chosen as Normalized bipolar
, then a Simulink signal of amplitude -1 results in an output voltage of 0 volts. Similarly, a Simulink signal of amplitude +1 results in an output voltage of +5 volts.
A voltage range on the D/A converter is set to -10 to +10 volts
, and the Block input signal is chosen as Normalized bipolar
, then a Simulink signal of amplitude -1 results in an output voltage of -10 volts. Similarly, a Simulink signal of amplitude +1 results in an output voltage of +10 volts.
This may require that you adjust your signal amplitudes in Simulink using a Gain block, Constant block, and Summer block depending on the selected voltage range.
![]() | I/O Driver Characteristics | Troubleshooting | ![]() |