Automatic Data Typing Using Derived Ranges

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.

Prerequisites for Autoscaling Using Derived Ranges

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.

Workflow for Autoscaling Using Derived Data

Before starting the conversion process, see Set up model.

Data Typing

  1. Select system under design

  2. Derive minimum and maximum values

    1. Set range collection using doubles

    2. Derive ranges

  3. Propose data types

  4. Examine results to resolve conflicts

  5. Apply proposed data types


  1. Update diagram

  2. Clean Up Model Settings

To begin the fixed-point conversion process, see Set Up the Model.

Related Examples

Was this topic helpful?