This example shows that if the analysis cannot derive range information because there is insufficient design range information, you can fix the issue by providing additional design range information.
ex_derived_min_max_5 model. At the MATLAB® command line,
The model displays the specified design minimum and maximum values for the blocks in the model.
The Inport block
In1 has a
design range of
The rest of the blocks in the model have no specified design range.
To display design ranges in your model, in the Debug tab, select Information Overlays > Signal Data Ranges.
From the Simulink® Apps tab, select Fixed-Point Tool.
In the Fixed-Point Tool, under System Under Design (SUD),
ex_derived_min_max_5 as the system you want to
Under Range Collection Mode, select Derived ranges.
Click the Collect Ranges button.
When the analysis is complete, the Fixed-Point Tool displays the derived minimum and maximum values for the blocks in the model in the spreadsheet. Because the model contains a feedback loop, the analysis is unable to derive an output range for the Add block or for any of the blocks connected to this output. The Fixed-Point Tool highlights these results.
To fix the issue, specify design minimum and maximum values inside the
feedback loop. For this example, specify the range for the
In the model, double-click the
In the block parameters dialog box, select the Signal Attributes tab.
In this tab, set Output minimum to
-20 and Output maximum
40 and click OK.
In the Fixed-Point Tool, click the Collect Ranges button to rerun the range analysis.
The range analysis uses the minimum and maximum values specified for
In1 to derive ranges for all
objects in the model.