Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

FixPt Gateway In Inherited  Anchor7081970819 Anchor7082070820 Anchor2412724127Convert a Simulink data type to a Fixed-Point Blockset data type, and inherit the data type and scaling
Anchor2413124131.

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.
Anchor4446344463

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.
Anchor4498944989 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 Integer treats the input as a stored integer, Q. For more information about this parameter list, refer to the FixPt Gateway In block.
anchor

2414024140For a detailed description of all other block parameters, refer to Block Parameters.
Anchor6621266212

Remarks

Anchor6621366213Inheriting the data type and scaling provides these advantages:

  • Anchor6621466214

    It makes reusing existing models easier.

    Anchor6621566215

  • 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

...

Anchor2415124151

  • 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

...

24170

Input Port

anchor24172

24172

Any built-in Simulink data type

Anchor2417424174

Output Port

Anchor24176

24176

Any data type supported by the blockset

Anchor2417824178

Direct Feedthrough

Anchor24180

24180

Yes

anchor24182

24182

Sample Time

Anchor2418424184

Inherited

Anchor24186

24186

Scalar Expansion

Anchor2418824188

No

anchor24190

24190

States

Anchor2419224192

0

Anchor2419424194

Vectorized

Anchor2419624196

Yes