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

The FixPt Constant block is a masked subsystem that generates a constant value.

Constants are specified with the Constant value parameter. A constant can be a scalar or a vector. The Output scaling parameter supports these scaling modes when Output data type is a generalized fixed-point data type:

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

If the block is configured to generate a single constant value, the block icon displays the constant. If the block is configured to generate a vector of constants, the block icon displays C. For a description of how the block icon displays the output data type, refer to "Block Icon Display".

Parameters and Dialog Box

Constant value
Constant value output by the block. It can be a scalar or vector. All members of the output vector must be the same data type.
Output data type
Any data type supported by the Fixed-Point Blockset.
Output scaling
Radix point-only or slope/bias scaling. Additionally, if Constant value is specified as a vector, it can be scaled using the constant vector scaling modes for maximizing precision. These scaling modes are only available for generalized fixed-point data types.
Override with doubles
If checked, Output data type is overridden with doubles.

Conversions

The Constant value parameter is converted from a double to the specified output data type offline using round-to-nearest and saturation. Refer to "Parameter Conversions" in the manual for more information about parameter conversions.

Characteristics

Output Port
Any data type supported by the blockset
Direct Feedthrough
No
Sample Time
Inherited
Scalar Expansion
No -- the output is always the same size as Constant value
States
0
Vectorized
Yes



[ Help Desk | Next ]