The Fixed-Point Tool automates the task of specifying fixed-point data types in a Simulink® model. This process is also known as autoscaling. The tool collects range data for model objects, either from design minimum and maximum values that objects specify explicitly, from logged minimum and maximum values that occur during simulation, or from minimum and maximum values derived using range analysis. Based on these values, the tool proposes fixed-point data types that maximize precision and cover the range.
Before beginning conversion, Set up the model. There are two phases of conversion: data typing, and verification. Steps one through five deal with the data typing phase, while steps six and seven deal with the verification phase.
Set range collection using doubles
Simulate using doubles
Set range collection using specified types
Simulate using fixed-point data types
Compare runs in Simulation Data Inspector
To begin the fixed-point conversion process, see Set Up the Model