Sharing Fixed-Point Models

You can edit a model containing fixed-point blocks without the Fixed-Point Designer™ software. However, you must have a Fixed-Point Designer software license to

  • Update a Simulink® diagram (Ctrl+D) containing fixed-point data types

  • Simulate a model containing fixed-point data types

  • Generate code from a model containing fixed-point data types

  • Log the minimum and maximum values produced by a simulation

  • Automatically scale the output of a model

If you do not have the Fixed-Point Designer software, you can work with a model containing Simulink blocks with fixed-point settings as follows:

  1. Open the Fixed-Point Tool. At the command line enter:

    fxptdlg('mySystem');

    In the Fixed-Point Tool, click the Collect Ranges button arrow. Select Edit Shortcuts. In the Advanced Settings dialog:

    • In the Model Hierarchy pane, select the root model.

    • In the System settings tab, set the Fixed-point instrumentation mode parameter to Force Off.

    • Set the Data type override parameter to Double or Single.

    • Set the Data type override applies to parameter to All numeric types.

    Click Apply, close the window, and the Fixed-Point Tool.

  2. If you use fi objects or embedded numeric data types in your model, set the fipref DataTypeOverride property to TrueDoubles and the DataTypeOverrideAppliesTo property to All numeric types.

    At the MATLAB® command line, enter:

     p = fipref('DataTypeOverride', 'TrueDoubles', ...
    		'DataTypeOverrideAppliesTo', 'AllNumericTypes');

Note

If you use fi objects or embedded numeric data types in your model or workspace, you might introduce fixed-point data types into your model. You can set fipref to prevent the checkout of a Fixed-Point Designer license.