Providing More Design Range Information

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.

  1. Open the ex_derived_min_max_5 model. At the MATLAB® command line, enter:


    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 -10,20.

    • The rest of the blocks in the model have no specified design range.


    To display design ranges in your model, from the model menu select Display > Signals & Ports and select Design Ranges.

  2. From the Simulink® Analysis menu, select Data Type Design > Fixed-Point Tool.

  3. In the Fixed-Point Tool, in the Collect Ranges section of the toolstrip, select Derived Ranges.

  4. 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.

  5. To fix the issue, specify design minimum and maximum values inside the feedback loop. For this example, specify the range for the Gain2 block:

    1. In the model, double-click the Gain2 block.

    2. In the block parameters dialog box, select the Signal Attributes tab.

    3. On this tab, set Minimum to -20 and Maximum to 40 and click OK.

  6. 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 Gain2 and In1 to derive ranges for all objects in the model.

Related Topics