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 can collect range data for model objects from:
Design minimum and maximum values that objects specify explicitly
Logged minimum and maximum values that occur during simulation
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 you begin conversion, you need to set up the model in Simulink. For more detail, see Set up the model.
Range collection using simulation—Using this method, collect ideal ranges for objects in your model by overriding your model with double-precision data types, and then simulate the model.
Range collection using derived range analysis—Using this method, the Fixed-Point Tool uses range analysis to derive minimum and maximum values for objects in your model. Range analysis works only for compatible models. For more information, see Model Compatibility with Range Analysis.
Set range collection using specified types
Simulate using fixed-point data types
Compare runs in the Simulation Data Inspector
To begin the fixed-point conversion process, see Set Up the Model.