Data Type Conversion Inherited

Convert from one data type to another using inherited data type and scaling

Library

Signal Attributes

Description

The Data Type Conversion Inherited block forces dissimilar data types to be the same. The first input is used as the reference signal and the second input is converted to the reference type by inheriting the data type and scaling information. (See Changing the Orientation of a Block in the Simulink® documentation for a description of the port order for various block orientations.) Either input is scalar expanded such that the output has the same width as the widest input.

Inheriting the data type and scaling provides these advantages:

Data Type Support

The Data Type Conversion Inherited block handles any data type supported by Simulink software, including fixed-point data types.

For a discussion on the data types supported by Simulink software, see Data Types Supported by Simulink®.

Parameters and Dialog Box

Input and Output to have equal

Specify whether the Real World Value (RWV) or the Stored Integer (SI) of the input and output should be the same. Refer to Description in the Data Type Conversion block reference page for more information about these choices.

Round toward

Select the rounding mode for fixed-point operations. For more information, see Rounding in the Simulink® Fixed Point™ User's Guide.

Saturate to max or min when overflows occur

Select to have overflows saturate.

Characteristics

Direct Feedthrough

Yes

See Also

Data Type Conversion

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS