Download Fixed-Point Blockset User's Guide

Transcript
Constant
Purpose
10Constant
Library
Sources
Description
The Constant block is a masked S-function that generates a constant value.
Generate a constant value
You specify constants with the Constant value parameter. A constant can be
a scalar or a vector.
You specify the output scaling with the Output scaling parameter. Note that
there are two dialog box parameters that control the output scaling: one
associated with an edit field, and one associated with a parameter list. If
Output data type is a generalized fixed-point number such as sfix(16), the
Output scaling parameter list provides you with these scaling modes:
• Use Specified Scaling – This mode uses the slope/bias or radix point-only
scaling specified for the editable Output scaling parameter (for example,
2^-10).
• Best Precision: Vector-wise – This mode produces a common radix point
for each element of the Constant value vector based on the best precision for
the largest value of the vector.
For a detailed description of all other block parameters, refer to “Block
Parameters” on page 10-4.
10-37