This example shows how range analysis takes into account block initial conditions.
Open the model. At the MATLAB command line, enter:
The model uses information overlays to display the specified design minimum and maximum values for the Inport block, and block annotations to display the initial conditions for the Unit Delay block.
In1 design range is
Unit Delay block initial condition is
From the Simulink® Apps tab, select Fixed-Point Tool.
In the Fixed-Point Tool, under New workflow, select
Iterative Fixed-Point Conversion.
Under System Under Design (SUD), select
ex_derived_min_max_2 as the system you want to
Under Range Collection Mode, select Derived ranges.
Click the Collect Ranges button.
In the spreadsheet, the Fixed-Point Tool displays the derived minimum and maximum values for the blocks in the model.
The derived minimum and maximum range for the Outport
[0..10]. The range
analysis derives this range by taking the union of the initial value,
0, on the Unit Delay block and the
design range on the block,
Change the initial condition of the Unit Delay block to
In the model, double-click the Unit Delay block.
In the Block Parameters dialog box, set
Initial condition to
7, then click
In the Fixed-Point Tool, click the Collect Ranges button.
Because the analysis takes the union of the initial
7, and the design range,
[5..10], on the Unit Delay
block, the derived range for the Outport block is
To display design ranges in your model, in the Debug tab, select Information Overlays > Signal Data Ranges.