After proposing data types with the Fixed-Point Tool as described in Convert Data Types, you can examine each proposal using the Result Details pane. This pane displays the rationale for the proposed data types and a histogram plot of the signal. This tab also describes potential issues or errors and suggests methods for resolving them. To view the details, in the spreadsheet of the tool, select an object that has a proposed data type. The Result Details pane will update with information related to the selected result.
The summary describes how the proposal differs from the currently specified data type of the object. For cases when the Fixed-Point Tool does not propose data types, this section provides a rationale. For example, the data type might be locked against changes by the fixed-point tools.
This section of the Result Details pane also informs you if the selected object must use the same data type as other objects in the model because of data type propagation rules. For example, the inputs to a Merge block must have the same data type. Therefore, the outputs of blocks that connect to these inputs must use the same data type. Similarly, blocks that are connected by the same element of a virtual bus must use the same data type.
Click the link to highlight the objects that share data types in the model. To clear this highlighting, right-click in the model and select Remove Highlighting.
The Fixed-Point Tool allocates a tag to objects that must use the same data type. The tool displays this tag in the DTGroup column for the object. To view the data type group that a result belongs to, add the DTGroup column to the spreadsheet. Click the add column button . Select DTGroup in the menu.
Some Simulink® blocks accept only certain data types on some ports. This section of the Result Details pane also informs you when a block that connects to the selected object has data type constraints that affect the proposed data type of the selected object.
The Proposed Data Type Summary section provides a table with the proposed data type information.
Data type that the Fixed-Point Tool proposes for this object and the minimum and maximum values that the proposed data type can represent
Data type that an object specifies
This section lists potential issues and errors associated with data type proposals and describes the issues and suggests methods for resolving them.
Indicates a warning message
Indicates an error message
This section provides a table with model object attributes that influence the data type proposal.
Design maximum and minimum values that an object specifies, e.g., its Output maximum and Output minimum parameters
Maximum and minimum values that occur during simulation
When proposing data types, the Fixed-Point Tool attempts to satisfy data type requirements that model objects impose on one another. For example, the Sum block has an option that requires all its inputs to have the same data type. As a result, the table might also list attributes of other model objects that affect the proposal for the selected object. In such cases, the table displays these types of shared values:
Initial Values—Some model objects have parameters that allow you to specify the initial values of their signals. For example, the Constant block has a Constant value parameter that initializes the block output signal. The Fixed-Point Tool uses initial values to propose data types for model objects whose design and simulation ranges are unavailable. With data type dependencies, the tool determines how initial values impact the proposals for neighboring objects.
Model-Required Parameters—Some model objects require you to specify numeric parameters to compute the value of their outputs. For example, the Table data parameter of an n-D Lookup Table block specifies values that the block requires to perform a lookup operation and generate output. When proposing data types, the Fixed-Point Tool considers how this parameter value required by the model impacts the proposals for neighboring objects.
On the spreadsheet, click the column header of the column containing the block icons. This action sorts the results so any results that contain conflicts with proposed data types appear at the top of the list.
Potential issues for each object appear coded by color in the list.
The proposed data type poses no issues for this object
The proposed data type poses potential issues for this object
The proposed data type will introduce data type errors if applied to this object
Review and fix each error. Select the result with the error, double-click the block icon in the spreadsheet to highlight the result in the Simulink editor. Use the information in the Needs Attention section of the Result Details pane to resolve the conflict.
Review the Result Details for the warnings and correct the problem if necessary.
You have changed the Simulink model, so the benchmark data is not up to date. Click the Collect Ranges button to rerun the simulation, or to derive new ranges.
If the Fixed-Point Tool warns you that you have not applied proposals, click Ignore and Simulate to continue.
To generate a proposal, click Propose Data Types .
You are now ready to apply the proposed data types to the model. For more information, see Apply Proposed Data Types.