Fixed-Point Blockset
  Go to block:
    Search    Help Desk 
FixPt Gateway In

The FixPt Gateway In block is a masked S-function that converts a built-in Simulink data type to a Fixed-Point Blockset data type. Simulink's complex data type is not supported.

The Treat input as parameter controls how the input is specified. In terms of the general encoding scheme described in "Scaling" in the manual, Real World Value specifies the input as V = SQ + B where S is the slope and B is the bias, while Stored Integer specifies the input as an integer, Q.

For a description of all other parameters, refer to "Block Parameters".

If the block input is treated as a real-world value, then a "V" appears in the upper left corner of the icon. If the block input is treated as an integer, then an "I" appears in the upper left corner of the icon. For a description of how the block icon displays the output data type, refer to "Block Icon Display".

Parameters and Dialog Box

Treat input as
Store the input as a real world value or as an integer.
Output data type
Any data type supported by the Fixed-Point Blockset.
Output scaling
Radix point-only or slope/bias scaling. These scaling modes are only available for generalized fixed-point data types.
Lock output scaling
If checked, Output scaling is locked. This feature is only available for generalized fixed-point output.
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 with doubles
If checked, 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 except complex
Output Port
Any data type supported by the blockset
Direct Feedthrough
Yes
Sample Time
Inherited
Scalar Expansion
No
States
0
Vectorized
Yes



[ Previous | Help Desk | Next ]