Versions Compared

Key

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

FixPt Gateway In Inherited  Anchor7081970819 Anchor7082070820anchor
2412724127Convert a Simulink data type to a Fixed-Point Blockset data type, and inherit the data type and scaling
Anchor2413124131Description
Anchor4063240632
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.
Anchor4446344463The 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
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.
Anchor24140
24140For a detailed description of all other block parameters, refer to Block Parameters.
Anchor6621266212Remarks
Anchor6621366213Inheriting the data type and scaling provides these advantages:

...

  • 6621466214It 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
Anchor2415024150 Image Removed
Anchor2415124151  Image Added
Treat input as
Anchor2415224152
Treat the input as a real-world value or as an integer.
Anchor2415924159
Round toward
Anchor2416024160
Rounding mode for fixed-point output.
anchor
2416124161Saturate to max or min when overflows occur
Anchor2416224162If checked, fixed-point overflows saturate. Otherwise, they wrap.
Anchor2416324163
Override data type(s) with doubles
Anchor2416424164If checked, the output data type is overridden with doubles.
Anchor2416524165
Log minimums and maximums
Anchor24166
24166If checked, minimum and maximum simulation values are logged to the workspace.
Anchor2416724167
Characteristics

...

24172

24174

Direct Feedthrough24180

Sample Time24184

24186

24188

24190

24192

24194

24196

Input Port

Anchor
24172

Any built-in Simulink data type

Anchor
24174

Output Portanchor

2417624176

Any data type supported by the blockset

Anchor
2417824178
Anchor
24180

Yes

Anchor
2418224182
Anchor
24184

Inherited

Anchor
24186

Scalar Expansion

Anchor
24188

No

Anchor
24190

States

Anchor
24192

0

Anchor
24194

Vectorized

Anchor
24196

Yes