The Unit Conversion block converts the unit of the input signal to the output signal. The block can convert if the units are separated by a scaling factor or offset, or are inverse units, for example:
y=a*U+b, where a is the scale and b is the offset
This block supports normal, accelerator, and rapid accelerator modes and fast restart.
The Unit Conversion block accepts and outputs real or complex values of the following data types:
For more information, see Data Types Supported by Simulink.
Specify the output data type.
Inherit via internal rule
Inherit: Inherit via internal rule
Simulink® chooses intermediate and output data types to balance numerical accuracy, performance, and generated code size, while taking into account the properties of the embedded target hardware. If you change the embedded target settings, the data type selected by the internal rule might change.
Inherit: Inherit via back propagation
Output data type is inherited via back propagation. Internal rules determine the intermediate data types and Simulink casts the final results to the output data type.
See Block-Specific Parameters for the command-line information.
See Converting Units for more information.
Double | Single | Base Integer | Fixed-Point
Inherited from driving block