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 input provides the data type and scaling information. The second input passes through to the output, and inherits the data type and scaling of the first input. To explicitly specify the output data type and scaling, use the FixPt Gateway In 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

- Treat input as - Treat the input as a real-world value or as an integer. The possible values are Real World Value and Stored Integer. Real World Value treats the input as V = SQ + B where S is the slope and B is the bias. Stored Integer treats the input as a stored integer Q.
- 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
| Characteristic | Description |
|---|---|
| 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 |