Verify that your model is compatible with range analysis.
In Simulink®, open your model and set it up for use with the Fixed-Point Tool. For more information, see Set Up the Model.
From the Simulink Analysis menu, select Data Type Design > Fixed-Point Tool.
In the Fixed-Point Tool, under System under design, select the system or subsystem of interest.
Optionally, you can use the Fixed-Point Advisor to prepare the model for conversion.
Under Fixed-point preparation for selected system, click the Fixed-Point Advisor button.
Run each task in the Fixed-Point Advisor. For more information, see Preparation for Fixed-Point Conversion.
The Fixed-Point Advisor:
Checks the model against fixed-point guidelines.
Identifies unsupported blocks.
Allows you to promote simulation minimum and maximum values to design minimum and maximum values. This capability is useful if you have not specified design ranges and you have simulated the model with inputs that cover the full intended operating range. For more information, see Specify block minimum and maximum values.
Under Configure model settings, click the Range collection using double override button.
This global override of the fixed-point data types using double-precision numbers avoids quantization effects.
Optionally, under Range collection, specify a run name. Specifying a unique run name avoids overwriting results from previous runs.
In the Fixed-Point Tool, click the Derive
System Under Design button.
The analysis runs and tries to derive range information for objects in the selected system. Your next steps depend on the analysis results.
|Analysis Results||Fixed-Point Tool Behavior||Next Steps||For More Information|
Successfully derives range data for the model.
Displays the derived minimum and maximum values for the blocks in the selected system.
Review the derived ranges to determine if the results are suitable for proposing data types. If not, you must specify additional design information and rerun the analysis.
Fails because the model contains blocks that the software does not support.
Generates an error and provides information about the unsupported blocks.
To fix the error, review the error message information and replace the unsupported blocks.
Cannot derive range data because the model contains conflicting design range information.
Generates an error.
To fix this error, examine the design ranges specified in the model to identify inconsistent design specifications. Modify them to make them consistent.
Cannot derive range data for an object because there is insufficient design range information specified on the model.
Highlights the results for the object.
Examine the model to determine which design range information is missing.