Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

FixPt Gateway In Inherited 
Convert a Simulink data type to a Fixed-Point Blockset data type, and inherit the data type and scaling
Description
The FixPt Gateway In Inherited block is a masked S-function that converts a built-in Simulink data type to a Fixed-Point Blockset data type.
The block requires two inputs. The first (top) input provides the data type and scaling information. The second (bottom) input passes through to the output, and inherits the data type and scaling of the first input. If you want to explicitly specify the output data type and scaling, use the FixPt Gateway In (file:///Users/denisova/Documents/FixedPointBlks/matrix.etseq.urv.es/manuals/matlab/toolbox/fixpoint/fixptgatewayin.html) block.
The Treat input as parameter list controls how the input is processed. The possible values are Real World Value and Stored Integer. In terms of the general encoding scheme described in Scaling, Real World Value treats the input as V = SQ + B where S is the slope and B is the bias. Stored Integertreats the input as a stored integer, Q. For more information about this parameter list, refer to the FixPt Gateway In block.
For a detailed description of all other block parameters, refer to Block Parameters.
Remarks
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.

Parameters and Dialog Box
 
Treat input as
Treat the input as a real-world value or as an integer.
Round toward
Rounding mode for 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 output data type is overridden with doubles.
Log minimums and maximums
If checked, minimum and maximum simulation values are logged to the workspace.
Characteristics

Input Port

Any built-in Simulink data type

Output Port

Any data type supported by the blockset

Direct Feedthrough

Yes

Sample Time

Inherited

Scalar Expansion

No

States

0

Vectorized

Yes

  • No labels