Skip to content

FixPt Conversion Inherited

Convert from one Fixed-Point Blockset data type to another, and inherit the data type and scaling.

Description

The FixPt Conversion Inherited block is a masked S-function that forces dissimilar data types to be the same. The first (top) input is used as the reference signal and the second (bottom) input is converted to the reference type by inheriting the data type and scaling information. Either input will be scalar expanded such that the output has the same width as the widest input.

If you want to specify the data type and scaling when converting from one Fixed-Point Blockset data type to another, you should use the FixPt Conversion block.

Inheriting the data type and scaling provides these advantages:

  • It makes reusing existing models easier.
  • It allows you to create new fixed-point models with less effort since you can avoid the detail of specifying the associated parameters.

Dialog Box Parameters

  • Round toward - Rounding mode for the fixed-point output.
  • Saturate to max or min when overflows occur - If checked, fixed-point overflows saturate. Otherwise, they wrap.
  • Override data type(s) with doubles - If checked, the inherited data type is overridden with doubles.
  • Log minimums and maximums - If checked, minimum and maximum simulation values are logged to the workspace.

Characteristics

Characteristic Description
Input Port Any data type supported by the blockset
Output Port Any data type supported by the blockset
Direct Feedthrough Yes
Sample Time Inherited
Scalar Expansion Yes
States 0