Models That Might Cause Data Type Propagation Errors

When the Fixed-Point Tool proposes changes to the data types in your model, it alerts you to potential issues. If the Fixed-Point Tool alerts you to data type errors, you must diagnose the errors and fix the problems. For more information, see Examine Results to Resolve Conflicts.

The Fixed-Point Tool does not detect all potential data type issues. If the tool does not report any issues for your model, it is still possible to experience subsequent data type propagation errors. Before you use the Fixed-Point Tool, back up your model to ensure that you can recover your original data type settings. For more information, see Best Practices for Fixed-Point Workflow.

The following models are likely to cause data type propagation issues.

Model Uses...Fixed-Point Tool BehaviorData Type Propagation Issue

Simulink® parameter objects

The Fixed-Point Tool is not able to detect when a parameter object must be integer only, such as when using a parameter object as a variable for dimensions, variant control, or a Boolean value.

Fixed-Point Tool might propose data types that are inconsistent with the data types for the parameter object or generate proposals that cause overflows.

User-defined S-functions

Cannot detect the operation of user-defined S-functions.

  • The user-defined S-function accepts only certain input data types. The Fixed-Point Tool cannot detect this requirement and proposes a different data type upstream of the S-function. Update diagram fails on the model due to data type mismatch errors.

  • The user-defined S-function specifies certain output data types. The Fixed-Point Tool is not aware of this requirement and does not use it for automatic data typing. Therefore, the tool might propose data types that are inconsistent with the data types for the S-function or generate proposals that cause overflows.

User-defined masked subsystems

Has no knowledge of the masked subsystem workspace and cannot take this subsystem into account when proposing data types.

Fixed-Point Tool might propose data types that are inconsistent with the requirements of the masked subsystem, particularly if the subsystem uses mask initialization. The proposed data types might cause data type mismatch errors or overflows.

Linked subsystems

Does not include linked subsystems when proposing data types.

Data type mismatch errors might occur at the linked subsystem boundaries.

Related Topics