| Contents | Index |
fxptdlg('modelname')
fxptdlg('modelname') starts the Fixed-Point Tool for the Simulink model specified by modelname. You can also access this tool by the following methods:
From the Simulink Tools menu, select Fixed-Point Tool.
From a subsystem context (right-click) menu, select Fixed-Point Tool.
In conjunction with Simulink Fixed Point software, the Fixed-Point Tool provides convenient access to:
Model and subsystem parameters that control the signal logging, fixed-point instrumentation mode, and data type override, namely, MinMaxOverflowArchiveMode, MinMaxOverflowLogging, DataTypeOverride, and DataTypeOverrideAppliesTo (see Model Parameters)
Plotting capabilities that enable you to plot data that resides in the MATLAB workspace, namely, simulation results associated with Scope, To Workspace, and root-level Outport blocks, in addition to logged signal data (see Signal Logging)
An interactive automatic data typing feature that proposes fixed-point data types for appropriately configured objects in your model, and then allows you to selectively accept and apply the data type proposals
You can launch the Fixed-Point Tool for any system or subsystem, and the tool controls the object selected in its Model Hierarchy pane. If Simulink Fixed Point software is installed, the Fixed-Point Tool Contents pane displays the name, data type, design minimum and maximum values, minimum and maximum simulation values, and scaling of each model object that logs fixed-point data. Additionally, if a signal saturates or overflows, the tool displays the number of times saturation or overflow occurred. You can display an object's dialog box by right-clicking the appropriate entry in the Contents pane and selecting Properties.
Note The Fixed-Point Tool works only for models that simulate in Normal mode. The tool does not work when you simulate your model in Accelerator or Rapid Accelerator mode (see Accelerating Models). |
Most of the functionality in the Fixed-Point Tool is for use with the Simulink Fixed Point software. However, even if you do not have Simulink Fixed Point software, you can configure data type override settings to simulate a model that specifies fixed-point data types. In this mode, the Simulink software temporarily overrides fixed-point data types with floating-point data types when simulating the model.
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 Toolbox license. For more information, see Licensing in the Fixed-Point Toolbox documentation. |
To simulate a model without using Simulink Fixed Point:
In the Model Hierarchy pane, select the root model.
From the Simulink model Tools menu, select Fixed-Point Tool.
The Fixed-Point Tool opens.
In the Current system settings panel:
If you use fi objects or embedded numeric data types in your model, set the fipref DataTypeOverride property to TrueDoubles or TrueSingles (to be consistent with the model-wide data type override setting) and the DataTypeOverrideAppliesTo property to All numeric types.
For example, at the MATLAB command line, enter:
p = fipref('DataTypeOverride', 'TrueDoubles', ...
'DataTypeOverrideAppliesTo', 'AllNumericTypes');The Fixed-Point Tool includes the following components:
Main toolbar (see Main Toolbar)
Model Hierarchy pane (see Model Hierarchy Pane)
Contents pane (see Contents Pane)
Dialog pane (see Dialog Pane)
The Fixed-Point Tool's main toolbar appears near the top of the Fixed-Point Tool window under the Fixed-Point Tool's menu.
The toolbar contains the following buttons that execute commonly used Fixed-Point Tool commands:
| Button | Usage |
|---|---|
|
| Open the Fixed-Point Advisor to prepare the model for conversion to fixed point. |
|
| Simulate a model and store the run results. |
|
| Pause a simulation. |
|
| Stop a simulation. |
|
| Analyze model and store derived minimum and maximum results. |
|
| Propose data types. Propose fraction lengths for specified word lengths or propose word lengths for specified fraction lengths. |
|
| Apply accepted data types. |
|
| Show details for selected result. |
|
| Create a difference plot for the selected signals. |
|
| Plot the selected signal. |
|
| Create a histogram plot for the selected signal. |
The toolbar also contains the Show option:

The Show option specifies the type of results to display in the Contents pane. The Contents pane displays information only after you simulate a system or propose fraction lengths. If there are no results that satisfy a particular filter option, the list will be blank.
| Show Option | Result | ||||
|---|---|---|---|---|---|
All results | Displays all results for the selected tree node. | ||||
Signal Logging results | For the selected tree node, displays blocks whose output
ports have logged signal data. The Fixed-Point tool marks these blocks
with the logged signal icon
| ||||
Min/Max results | For the selected tree node, displays blocks that record design Min/Max, simulation Min/Max, and overflow data. Prerequisites: Fixed-point instrumentation mode should not be set to Force Off. | ||||
Overflows | For the selected tree node, displays blocks that have non-zero overflows recorded. If a block has its Saturate on integer overflow option selected, overflow information appears in the Saturations column, otherwise it appears in the OverflowWraps column. | ||||
Conflicts with proposed data types | For the selected tree node, displays results that have potential data typing or scaling issues. Prerequisites: This information is available only after you propose data types. The Fixed-Point Tool marks these results with a yellow or red icon, as shown here:
| ||||
Groups that must share the same data type | For the selected tree node, displays blocks that must share the same data type because of data type propagation rules. Prerequisites: This information is available only after you propose fraction lengths. The Fixed-Point Tool allocates an identification tag to blocks that must share the same data type. This identification tag is displayed in the DTGroup column as follows:
|
The Model Hierarchy pane displays a tree-structured view of the Simulink model hierarchy. The first node in the pane represents a Simulink model. Expanding the root node displays subnodes that represent the model's subsystems, MATLAB Function blocks, Stateflow charts, and referenced models.
The Fixed-Point Tool's Contents pane displays elements that comprise the object selected in the Model Hierarchy pane. The Dialog pane provides parameters for specifying the selected object's data type override and fixed-point instrumentation mode. Objects that control the Fixed-point instrumentation mode parameter display a red flag on their icons, while those that control the Data type override parameter display a green flag. The Model Hierarchy pane indicates the value of these parameters by displaying the following abbreviations next to the object name:
| Abbreviation | Parameter Value |
|---|---|
Fixed-point instrumentation mode | |
| mmo | Minimums, maximums and overflows |
| o | Overflows only |
| fo | Force off |
Data type override | |
| scl | Scaled double |
| dbl | Double |
| sgl | Single |
| fo | Off |
See Dialog Pane for more information about these parameters.
The Contents pane displays a tabular view of objects that log fixed-point data in the system or subsystem selected in the Model Hierarchy pane. The table rows correspond to model objects, such as blocks, block parameters, and Stateflow data. The table columns correspond to attributes of those objects, such as the data type, design minimum and maximum values, and simulation minimum and maximum values.
The Contents pane displays information only after you simulate a system, analyze the model to derive minimum and maximum values, or propose fraction lengths.
You can control which of the following columns the Fixed-Point Tool displays in this pane. For more information, see Customizing the Contents Pane View.
| Column Label | Description |
|---|---|
Accept | Check box that enables you to selectively accept the Fixed-Point Tool's data type proposal. |
CompiledDesignMax | Compile-time information for DesignMax. |
CompiledDesignMin | Compile-time information for DesignMin. |
CompiledDT | Compile-time data type. This data type appears on the signal line in sfix format. See Fixed-Point Data Type and Scaling Notation. |
DerivedMax | Maximum value the Fixed-Point tool derives for this signal from design ranges specified for blocks. |
DerivedMin | Minimum value the Fixed-Point tool derives for this signal from design ranges specified for blocks. |
DesignMax | Maximum value the block specifies in its parameter dialog box, for example, the value of its Output maximum parameter. |
DesignMin | Minimum value the block specifies in its parameter dialog box, for example, the value of its Output minimum parameter. |
DivByZero | Number of divide-by-zero instances that occur during simulation. |
DTGroup | Identification tag associated with objects that share data types. |
InitValueMax | Maximum initial value for a signal or parameter. Some model objects provide parameters that allow you to specify the initial values of their signals. For example, the Constant block includes a Constant value that initializes the block output signal. |
InitValueMin | Minimum initial value for a signal or parameter. Some model objects provide parameters that allow you to specify the initial values of their signals. For example, the Constant block includes a Constant value that initializes the block output signal. |
LogSignal | Check box that allows you to enable or disable signal logging for an object. |
ModelRequiredMin | Minimum value of a parameter used during simulation. For example, the n-D Lookup Table block uses the Breakpoints and Table data parameters to perform its lookup operation and generate output. In this example, the block uses more than one parameter so the Fixed-Point Tool sets ModelRequiredMin to the minimum of the minimum values of all these parameters. |
ModelRequiredMax | Maximum value of a parameter used during simulation. For example, the n-D Lookup Table block uses the Breakpoints and Table data parameters to perform its lookup operation and generate output. In this example, the block uses more than one parameter so the Fixed-Point Tool sets ModelRequiredMax to the maximum of the maximum values of all these parameters. |
Name | Identifies path and name of block. |
OverflowWraps | Number of overflows that wrap during simulation. |
ProposedDT | Data type that the Fixed-Point Tool proposes. |
ProposedMax | Maximum value that results from the data type the Fixed-Point Tool proposes. |
ProposedMin | Minimum value that results from the data type the Fixed-Point Tool proposes. |
Run | Indicates the run name for these results. |
Saturations | Number of overflows that saturate during simulation. |
SimDT | Data type the block uses during simulation. This data type appears on the signal line in sfix format. See Fixed-Point Data Type and Scaling Notation. |
SimMax | Maximum value that occurs during simulation. |
SimMin | Minimum value that occurs during simulation. |
SpecifiedDT | Data type the block specifies in its parameter dialog box, for example, the value of its Output data type parameter. |
You can customize the Contents pane in the following ways:
The Fixed-Point Tool provides the following standard Column Views:
| View Name | Columns Provided | When Does the Fixed-Point Tool Display this View? |
|---|---|---|
| Simulation View (default) | Name, Run, CompiledDT, SpecifiedDT, SimMin, SimMax, DesignMin, DesignMax, OverflowWraps, Saturations | After a simulating minimum and maximum values. |
| Automatic Data Typing View | Name, Run, CompiledDT, CompiledDesignMax, CompiledDesignMin,Accept, ProposedDT, SpecifiedDT, DesignMin, DesignMax, DerivedMin, DerivedMax, SimMin, SimMax, OverflowWraps, Saturations, ProposedMin, ProposedMax | After proposing data types if proposal is based on simulation, derived, and design min/max. |
| Automatic Data Typing With Simulation Min/Max View | Name, Run, CompiledDT, Accept, ProposedDT, SpecifiedDT, SimMin, SimMax, DesignMin, DesignMax, OverflowWraps, Saturations, ProposedMin, ProposedMax | After proposing data types if the proposal is based on simulation and design min/max. |
| Automatic Data Typing With Derived Min/Max View | Name, Run, CompiledDesignMax, CompiledDesignMin,Accept, ProposedDT, SpecifiedDT, DerivedMin, DerivedMax, ProposedMin, ProposedMax | After proposing data types if the proposal is based on design min/max and/or derived min/max. |
| Data Collection View | Name, Run, CompiledDT, SpecifiedDT, DerivedMin, DerivedMax, SimMin, SimMax, OverflowWraps, Saturations | After simulating or deriving minimum and maximum values if the results have simulation min/max, derived min/max, and design min/max. |
| Derived Min/Max View | Name, Run, CompiledDesignMax, CompiledDesignMin, DerivedMin, DerivedMax | After deriving minimum and maximum values. |
By selecting Show Details, you can:
Customize the standard column views
Create your own column views
Reset views to factory settings
Export and import column views saved in MAT-files, which you can share with other users
For more information on controlling views, see The Model Explorer: Controlling Contents Using Views
You can alter the order and width of columns that appear in the Contents pane as follows:
To move a column, click and drag the head of a column to a new location among the column headers.
To make a column wider or narrower, click and drag the right edge of a column header. If you double-click the right edge of a column header, the column width changes to fit its contents.
By default, the Contents pane displays its contents in ascending order of the Name column. You can alter the order in which the Contents pane displays its rows as follows:
To sort all the rows in ascending order of another column, click the head of that column.
To change the order from ascending to descending, simply click again on the head of that column.
Use the Dialog pane to view and change properties associated with the object selected in the Model Hierarchy pane.

The Dialog pane includes the following components:
| Component | Description |
|---|---|
| Fixed-point preparation for selected system | Contains the Fixed-Point Advisor button. Use this button to open the Fixed-Point Advisor to guide you through the tasks to prepare your floating-point model for conversion to fixed point. For more information, see Fixed-Point Advisor. |
| Shortcuts to set up runs | Contains shortcuts that allow you to set up run parameters, such as the run name and data type override settings, by clicking a button. The Fixed-Point Tool provides several factory default shortcuts for common configurations and allows you to set up your own shortcuts. For more information, see Shortcuts to set up runs. |
| Settings for selected system | Contains controls to set the fixed-point instrumentation mode and data type override settings. For more information, see Fixed-point instrumentation mode, Data type override, and Data type override applies to. |
| Data collection | Contains controls to collect simulation or derived minimum and maximum data for your model. |
| Automatic data typing for selected system | Contains controls to propose and, optionally, accept data type proposals. |
| Show details for selected result | Use this button to view data type information about the object selected in the Contents pane. For more information, see Show details for selected result. |
From the Fixed-Point Tool View menu, you can customize the layout of the Dialog pane. Select:
Show Dialog View to show/hide the Dialog pane. By default, the Fixed-Point Tool displays this pane. Hide it to make more room for displaying results.
Settings for selected system to show/hide the Settings for selected system pane. By default, the Fixed-Point Tool displays this pane.
Show Fixed-Point Advisor to show/hide the Prepare conversion in the Fixed-Point Advisor button. By default, the Fixed-Point Tool displays this button.
Open the Fixed-Point Advisor
Opens the Fixed-Point Advisor which guides you through the tasks to prepare a floating-point model for conversion to fixed point.
Use the Fixed-Point Advisor if:
You have a floating-point model
You have inheritance rules in your model
Your model contains blocks that do not support fixed-point data types
Use shortcuts to configure model-wide data type override and instrumentation settings prior to simulation. The Fixed-Point Tool provides:
Frequently-used factory default shortcuts
The ability to add and edit custom shortcuts
Note The factory default shortcuts apply to the whole model. You cannot use these shortcuts to configure subsystems. |
| Factory Default Shortcut | Description |
|---|---|
| Model-wide double override and full instrumentation | Sets:
By default, a button for this shortcut appears in the Shortcuts to set up runs pane. |
| Model-wide no override with full instrumentation | Sets:
By default, a button for this shortcut appears in the Shortcuts to set up runs pane. |
| Model-wide single override and full instrumentation | Sets:
|
| Model-wide instrumentation off | Sets Fixed-point instrumentation mode to Force Off. Does not affect run name or data type override settings. |
Use Add/Edit shortcuts to open the Shortcut Editor, which you use to add new shortcuts or edit existing user-defined shortcuts. You cannot edit the factory default shortcuts.
Control which objects log minimum, maximum and overflow data during simulation.
Default: Use local settings
Logs data according to the value of this parameter set for each subsystem. Otherwise, settings for parent systems always override those of child systems.
Logs minimum value, maximum value, and overflow data for all blocks in the current system or subsystem during simulation.
Logs only overflow data for all blocks in the current system or subsystem.
Does not log data for any block in the current system or subsystem. Use this selection to work with models containing fixed-point enabled blocks if you do not have a Simulink Fixed Point license.
The Fixed-Point Tool marks the system controlling
the Fixed-point instrumentation mode with a red
flag
.
You cannot change the instrumentation mode for linked subsystems or referenced models.
The value of this parameter for parent systems controls min/max logging for all child subsystems, unless Use local settings is selected.
| Parameter: 'MinMaxOverflowLogging' |
| Type: string |
| Value: 'UseLocalSettings' | 'MinMaxAndOverflow' | 'OverflowOnly' | 'ForceOff' |
| Default: 'UseLocalSettings' |
Control data type override of objects that allow you to specify data types in their dialog boxes.
Default: Use local settings
The value of this parameter for parent systems controls data type override for all child subsystems, unless Use local settings is selected.
Overrides data types according to the setting of this parameter for each subsystem.
Overrides the data type of all blocks in the current system and subsystem with doubles; however, the scaling and bias specified in the dialog box of each block is maintained.
Overrides the output data type of all blocks in the current system or subsystem with doubles. The overridden values have no scaling or bias.
Overrides the output data type of all blocks in the current system or subsystem with singles. The overridden values have no scaling or bias.
No data type override is performed on any block in the current system or subsystem. The settings on the blocks are used.
Set this parameter to Double or Single and the Data type override applies to parameter to All numeric types to work with models containing fixed-point enabled blocks if you do not have a Simulink Fixed Point license.
You cannot change the Data type override setting on linked subsystems or referenced models.
The Fixed-Point Tool marks the system controlling
the Data type override mode with a green flag
.
Data type override never applies to boolean data types.
When you set the Data type override parameter of a parent system to Double, Single, Scaled double or Off, this setting also applies to all child subsystems and you cannot change the data type override setting for these child subsystems. When the Data type override parameter of a parent system is Use local setting, you can set the Data type override parameter for individual children.
Use this parameter with the Data type override applies to parameter. The following table details how these two parameters affect the data types in your model.
| Fixed-Point Tool Settings | Block Local Settings | ||
|---|---|---|---|
| Data type override | Data type override applies to | Floating-point types | Fixed-point types |
| Use local settings/Off | N/A | Unchanged | Unchanged |
| Double | All numeric types | Double | Double |
| Floating-point | Double | Unchanged | |
| Fixed-point | Unchanged | Double | |
| Single | All numeric types | Single | Single |
| Floating-point | Single | Unchanged | |
| Fixed-point | Unchanged | Single | |
| Scaled double | All numeric types | Double | Scaled double equivalent of fixed-point type |
| Floating-point | Double | Unchanged | |
| Fixed-point | Unchanged | Scaled double equivalent of fixed-point type | |
The following Simulink blocks allow you to set data types in their block masks, but ignore the Data type override setting:
The MATLAB Function block does not support the Data type override setting Scaled double.
Stateflow does not support the Data type override setting Scaled double.
| Parameter: 'DataTypeOverride' |
| Type: string |
| Value: 'UseLocalSettings' | 'ScaledDouble' | 'Double' | 'Single' | 'Off' |
| Default: 'UseLocalSettings' |
Specifies which data types the Fixed-Point Tool overrides
Default: All numeric types
Data type override applies to all numeric types, floating-point and fixed-point. It does not apply to boolean or enumerated data types.
Data type override applies only to floating-point data types, that is, double and single.
Data type override applies only to fixed-point data types, for example, uint8, fixdt.
Use this parameter with the Data type override parameter.
Data type override never applies to boolean or enumerated data types or to buses.
When you set the Data type override parameter of a parent system to Double, Single, Scaled double or Off, this setting also applies to all child subsystems and you cannot change the data type override setting for these child subsystems. When the Data type override parameter of a parent system is Use local setting, you can set the Data type override parameter for individual children.
The following table details how these two parameters affect the data types in your model.
| Fixed-Point Tool Settings | Block Local Settings | ||
|---|---|---|---|
| Data type override | Data type override applies to | Floating-point types | Fixed-point types |
| Use local settings/Off | N/A | Unchanged | Unchanged |
| Double | All numeric types | Double | Double |
| Floating-point | Double | Unchanged | |
| Fixed-point | Unchanged | Double | |
| Single | All numeric types | Single | Single |
| Floating-point | Single | Unchanged | |
| Fixed-point | Unchanged | Single | |
| Scaled double | All numeric types | Double | Scaled double equivalent of fixed-point type |
| Floating-point | Double | Unchanged | |
| Fixed-point | Unchanged | Scaled double equivalent of fixed-point type | |
This parameter is enabled only when Data type override is set to Scaled double, Double or Single.
| Parameter: 'DataTypeOverrideAppliesTo' |
| Type: string |
| Value: 'AllNumericTypes' | 'Floating-point' | 'Fixed-point' |
| Default: 'AllNumericTypes' |
Specifies the run name
If you use a shortcut to set up a run, by default, the Fixed-Point Tool uses the run name associated with this shortcut. You can override the run name by entering a new name in this field.
To store data for multiple runs, provide a different run name for each run. Running two simulations with the same run name overwrites the original run.
You can edit the run name in the Contents pane Run column.
Simulates model and stores results.
Simulates the model and stores the results with the run name specified in Store results in run. The Fixed-Point Tool displays the run name in the Run column of the Contents pane.
Using the Simulate button is the same as simulating the model using the Start simulation button in the Simulink model.
| Command: sim |
Control how simulation results are stored
Default: Off
Merges new simulation minimum and maximum results with existing simulation results in the run specified by the run name parameter. Allows you to collect complete range information from multiple test benches. Does not merge signal logging results.
Clears all existing simulation results from the run specified by the run name parameter before displaying new simulation results.
| Parameter: 'MinMaxOverflowArchiveMode' |
| Type: string |
| Value: 'Overwrite' | 'Merge' |
| Default: 'Overwrite' |
Select this parameter to log simulation minimum and maximum values captured over multiple simulations.
Derive minimum and maximum values for signals for the selected system
The Fixed-Point Tool analyzes the selected system to compute derived minimum and maximum information based on the design minimum and maximum values specified on blocks. For example, using the Output minimum and Output maximum for block outputs.
Analyzes the selected system to compute derived minimum and maximum information based on the design minimum and maximum values specified on blocks.
By default, the Fixed-Point Tool displays the Derived Min/Max View with the following information in the Contents pane.
Name
Run
CompiledDesignMax
CompiledDesignMin
DerivedMax
DerivedMin
DesignMax
DesignMin
If Highlight results with potential issues is selected, the tool alerts you to potential issues for each object in the list by highlighting the object in the Contents pane.
No command line alternative available.
Range analysis:
Requires a Simulink Fixed Point license.
Does not run on Mac® platforms.
Highlight results that have saturations, overflows or insufficient design min/max information to derive results.
Default: On
Highlight results with potential issues.
After simulating the model, the Fixed-Point Tool highlights results that have either saturations or overflows.
After analyzing the model to derive minimum and maximum values, the tool highlights both the results that have issues and the results that are likely to be the cause of the issue. For example, if the tool cannot derive ranges for an object because an upstream object does not have sufficient design minimum and maximum information, it highlights both results.
The Fixed-Point Tool uses different colors to highlight the results that have issues and the results that might be the cause of issues.
Do not highlight results. Remove existing highlighting.
No command line alternative available.
Select a highlighted result and click Show details for selected result to view more information about the issue.
Use range information and propose fraction lengths for model objects.
Use this button to perform the first phase of the automatic data typing procedure, in which the Fixed-Point Tool uses range information for model objects—from design minimum and maximum values the objects specify explicitly, or from logged minimum and maximum values that occur during simulation, or from derived minimum and maximum values. Based on these values, the tool proposes fraction lengths for blocks whose:
Lock output data type setting against changes by the fixed-point tools or Lock data type settings against changes by the fixed-point tools check box is cleared.
Data type specifies a generalized fixed-point number.
The Fixed-Point Tool lists its scaling proposals in the Contents pane. The tool alerts you to potential scaling issues for each object in the list by displaying a green, yellow, or red icon, as shown here:
|
| The proposed scaling poses no issues for this object. |
|
| The proposed scaling poses potential issues for this object. Open the Autoscale Information dialog box to review these issues. |
|
| The proposed scaling will introduce data type errors if applied to this object. Open the Autoscale Information dialog box for details about how to resolve these issues. |
No command line alternative available.
Use range information and propose word lengths for model objects.
Use this button to perform the first phase of the automatic data typing procedure, in which the Fixed-Point Tool uses range information for model objects—from design minimum and maximum values the objects specify explicitly, or from logged minimum and maximum values that occur during simulation, or from derived minimum and maximum values. Based on these values, the tool proposes word lengths for blocks whose:
Lock output data type setting against changes by the fixed-point tools or Lock data type settings against changes by the fixed-point tools check box is cleared.
Data type specifies a generalized fixed-point number.
The Fixed-Point Tool lists its data type proposals in the Contents pane. The tool alerts you to potential issues for each object in the list by displaying a green, yellow, or red icon, as shown here:
|
| The proposed data type poses no issues for this object. |
|
| The proposed data type poses potential issues for this object. Open the Result Details dialog box to review these issues. |
|
| The proposed data type will introduce errors if applied to this object. Open the Result Details dialog box for details about how to resolve these issues. |
No command line alternative available.
Select to propose fraction lengths for the word lengths specified in the model.
Note This parameter appears only if the Automatic data typing for selected system Settings pane is displayed. |
Select to propose word lengths for the fraction lengths specified in the model.
Note This parameter appears only if the Automatic data typing for selected system Settings pane is displayed. |
Specifies the default data type to use for all floating-point signals
Use to change the floating-point data types in the model to fixed point.
Default:
Does not change the data type of floating-point signals.
Select this option if you are using the Fixed-Point Tool to derive minimum and maximum values for the model. To propose data types for the model, you must set the default data type to be a built-in integer or fixed-point data type.
Sets the default data type for all floating-point signals to the integer type specified for the target hardware.
Select this option if your target hardware is a microprocessor.
Sets the default data type for all floating-point signals to int8.
Sets the default data type for all floating-point signals to int16.
Sets the default data type for all floating-point signals to int32.
Sets the default data type for all floating-point signals to the fixed-point data type specified by fixdt. You can modify the parameters provided to fixdt to specify signedness, word length and fraction length.
This parameter appears only if you click the Configure link on the Automatic data typing for selected system Settings pane.
Propose fraction or word lengths based on design and derived minimum and maximum information.
Default: On
Propose fraction or word lengths based on derived minimum and maximum values, but only for blocks that do not specify design minimum or maximum values using, for example, Output minimum and Output maximum parameters.
If Simulation min/max is also selected, the Fixed-Point Tool bases its proposal on both the derived and simulation min/max values and the proposed data types cover the union of the derived range and the simulation range.
Ignore derived minimum and maximum values when proposing fraction lengths.
No command line alternative available.
This parameter appears only if you click the Configure link on the Automatic data typing for selected system Settings pane.
Propose fraction or word lengths based on design and simulation minimum and maximum values.
Default: On
Proposes fraction lengths based on simulation minimum and maximum values, but only for blocks that do not specify design minimum or maximum values using, for example, Output minimum and Output maximum parameters.
If Derived min/max is also selected, the Fixed-Point Tool bases its proposal on both the derived and simulation min/max values and the proposed data types cover the union of the derived range and the simulation range.
Ignores simulation minimum and maximum values when proposing fraction lengths.
No command line alternative available.
This parameter appears only if you click the Configure link on the Automatic data typing for selected system Settings pane.
Specify safety factor for design and derived minimum and maximum values.
Default: 0
The design and derived minimum and maximum values are adjusted by the percentage designated by this parameter. For example, a value of 55 specifies that a range at least 55 percent larger is desired. A value of -15 specifies that a range up to 15 percent smaller is acceptable.
Before performing autoscaling, you must specify design minimum and maximum values, or run a simulation to collect simulation minimum and maximum data, or collect derived minimum and maximum data.
No command line alternative available.
This parameter appears only if you click the Configure link on the Automatic data typing for selected system Settings pane.
Specify safety factor for simulation minimum and maximum values.
Default: 0
The simulation minimum and maximum values are adjusted by the percentage designated by this parameter, allowing you to specify a range different from that obtained from the simulation run. For example, a value of 55 specifies that a range at least 55 percent larger is desired. A value of -15 specifies that a range up to 15 percent smaller is acceptable.
Before performing automatic data typing, you must specify design minimum and maximum values or run a simulation to collect simulation minimum and maximum data, or collect derived minimum and maximum values.
No command line alternative available.
This parameter appears only if you click the Configure link on the Automatic data typing for selected system Settings pane.
Apply scaling proposals
Use this button to perform the second phase of the automatic data typing procedure, in which the Fixed-Point Tool applies the scaling proposals to the objects whose Accept check box in the Contents pane is selected.
This button appears when Propose fraction lengths for specified word lengths is selected.
No command line alternative available.
Apply data type proposals
Use this button to perform the second phase of the automatic data typing procedure, in which the Fixed-Point Tool applies the data type proposals to the objects whose Accept check box in the Contents pane is selected.
This button appears when Propose word lengths for specified fraction lengths is selected.
No command line alternative available.
Display details for object selected in the Contents pane
Use this option to:
Determine why a fraction length cannot be proposed, for example, fraction lengths cannot be proposed for Library Links or Mask Subsystems.
Provide access to showing blocks with shared data types.
Obtain more information on the proposal for the selected result.
No command line alternative available.
Use the Shortcut Editor to add or edit user-defined shortcuts. You cannot modify the factory default shortcuts. If you add a new shortcut and want it to appear as a button on the Fixed-Point Tool Shortcuts to set up runs pane, use the controls in the Manage shortcuts panel.
Enter a unique name for your shortcut. By default, the Fixed-Point Tool uses this name as the Run name for this shortcut.
If the shortcut name already exists, the new settings overwrite the existing settings.
Select whether to change the model fixed-point instrumentation settings when you apply this shortcut to the model.
Default: On
When you apply this shortcut to the model, changes the fixed-point instrumentation settings of the model and its subsystems to the setting defined in this shortcut.
Does not change the fixed-point instrumentation settings when you apply this shortcut to the model.
If you want to control data type override settings without altering the fixed-point instrumentation settings on your model, clear this option.
Select whether to change the model data type override settings when you apply this shortcut to the model
Default: On
When you apply this shortcut to the model, changes the data type override settings of the model and its subsystems to the settings defined in this shortcut .
Does not change the fixed-point instrumentation settings when you apply this shortcut to the model.
Select whether to change the run name on the model when you apply this shortcut to the model
Default: On
Changes the run name to the setting defined in this shortcut when you apply this shortcut to the model.
Does not change the run name when you apply this shortcut to the model.
Specify the run name to use when you apply this shortcut.
By default, the run name defaults to the name of the shortcut. Run names are case sensitive.
Allow modification of run name enables this parameter.
Copy the model and subsystem fixed-point instrumentation mode and data type override settings into the Shortcut Editor.
Control which objects in the shortcut editor log minimum, maximum and overflow data during simulation.
This information is stored in the shortcut. To use the current model setting, click Capture system settings.
Default: Same as model setting
Logs data according to the value of this parameter set for each subsystem. Otherwise, settings for parent systems always override those of child systems.
Logs minimum value, maximum value, and overflow data for all blocks in the current system or subsystem during simulation.
Logs only overflow data for all blocks in the current system or subsystem.
Does not log data for any block in the current system or subsystem. Use this selection to work with models containing fixed-point enabled blocks if you do not have a Simulink Fixed Point license.
Allow modification of fixed-point instrumentation settings enables this parameter.
Control data type override of objects that allow you to specify data types in their dialog boxes.
This information is stored in the shortcut. To use the current model settings, click Capture system settings.
Default: Same as model
The value of this parameter for parent systems controls data type override for all child subsystems, unless Use local settings is selected.
Overrides data types according to the setting of this parameter for each subsystem.
Overrides the data type of all blocks in the current system and subsystem with doubles; however, the scaling and bias specified in the dialog box of each block is maintained.
Overrides the output data type of all blocks in the current system or subsystem with doubles. The overridden values have no scaling or bias.
Overrides the output data type of all blocks in the current system or subsystem with singles. The overridden values have no scaling or bias.
No data type override is performed on any block in the current system or subsystem. The settings on the blocks are used.
Allow modification of data type override settings enables this parameter.
Specifies which data types to override when you apply this shortcut.
This information is stored in the shortcut. To use the current model setting, click Capture system settings.
Default: All numeric types
Data type override applies to all numeric types, floating-point and fixed-point. It does not apply to boolean or enumerated data types.
Data type override applies only to floating-point data types, that is, double and single.
Data type override applies only to fixed-point data types, for example, uint8, fixdt.
Allow modification of data type override settings enables this parameter.
Control which shortcuts appear as buttons on the Fixed-Point Tool Shortcuts to set up runs panel and the order in which they appear.
The Fixed-Point Tool provides plotting capabilities that enable you to plot signals for graphical analysis. The tool can access signal data that resides in the MATLAB workspace, allowing you to plot simulation results associated with:
Scope blocks whose Save data to workspace parameter is selected
To Workspace blocks
Root-level Outport blocks, when the Output check box on the Data Import/Export pane of the Configuration Parameters dialog box is selected
Logged signal data (see Signal Logging)
The toolbar contains tools for interactive zooming, panning, rotating, querying, and editing plots. For more information, see Figure Toolbars in the MATLAB documentation.
Tip
The Contents pane of the Fixed-Point Tool
displays an antenna icon
|
You can create the following types of plots using the Fixed-Point Tool's interface:
Difference Plot
Time Series Plot
Histogram Plot
To view this plot, select Results > Difference Plot of Signal or
click
.
Plots the signal in both selected runs on the upper axes, and plots the difference between the selected runs on the lower axes. For more details, see Propose Fraction Lengths Using Simulation Range Data in the Simulink Fixed Point documentation.
This plot also provides details of the real world value of the signal on the left y-axis, and the corresponding integer value on the right y-axis. If the Fixed-Point Tool cannot determine the scaling for a fixed-point data type, it cannot display the integer value information. In this case, it labels the right y-axis Integer Value Indeterminate. For more information on scaling, see Scaling in the Simulink Fixed Point documentation.

By default, synchronized zooming is enabled for the Difference Plot. If you zoom in or out on a selected area on one plot, only the x-axis zooms on the other plot. To return to the original view at any time:
Right-click on either plot to open the context menu
Select Reset to Original View
To view this plot, select Results > Plot of Signal or click
.
Plots data as a function of time.

To view this plot, select Results > Histogram Plot of Signal or
click
.
Helps you visualize the dynamic range of a signal.
This plot provides information about the:
Total number of samples (N)
The maximum number of bits needed to prevent overflow
Number of times each bit has been used to represent the data (as a percentage of the total number of samples)
Number of times that exact zero occurred (without the effect of quantization). This does not include the number of zeroes that occurred due to rounding.
You can use this information to estimate the word size needed to represent the signal.

The Fixed-Point Tool provides options that allow you to control signal logging in a model (see Signal Logging). Using these options, you can enable or disable logging for multiple signals simultaneously, based on signal attributes such as:
The location of signals in a model hierarchy
Whether or not signals have names
The Fixed-Point Tool does not control signal logging for referenced models or subsystems with library links. It ignores these objects when enabling or disabling signal logging in a model hierarchy.
You can control the signal logging of a Simulink subsystem, that is placed inside of a Stateflow Chart, from the subsystem parent node.
In the Model Hierarchy pane, right-click a node that represents either a model or a subsystem.
The Fixed-Point Tool displays a context menu for the selected node.
In the context menu, select either Enable Signal Logging or Disable Signal Logging.
The Fixed-Point Tool displays a submenu that lists a variety of signal logging options.
Choose from the following signal logging options:
Select... | To Enable or Disable Signal Logging for... |
|---|---|
All Signals in this System | All signals in the selected system |
All Signals from Here Down | All signals in the selected system and its subsystems |
Outports in this System | All Outport blocks in the selected system |
Named Signals in this System | All signals in the selected system, whose Signal name parameter specifies a value |
Named Signals from Here Down | All signals in the selected system and its subsystems, whose Signal name parameter specifies a value |
Unnamed Signals in this System | All signals in the selected system, whose Signal name parameter is empty |
Unnamed Signals from Here Down | All signals in the selected system and its subsystems, whose Signal name parameter is empty |
To learn how to use the tool, see Propose Fraction Lengths Using Simulation Range Data in the Simulink Fixed Point documentation.

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |