fxptdlg
Open the Fixed-Point Tool
Syntax
Description
fxptdlg(
opens the Fixed-Point
Tool for the Simulink® model or subsystem specified by system_name
)system_name
.
You can also access this tool by the following methods:
From the Apps tab, under Code Generation click Fixed-Point Tool.
From a subsystem context (right-click) menu, select Fixed-Point Tool.
Examples
Open the Fixed-Point Tool from the Command Line
Open a Simulink model.
openExample("fixedpoint/FixedPointToolExample","supportingFile","fxpdemo_feedback.slx")
Open the Fixed-Point Tool with the Controller
subsystem selected
as the system under design.
fxptdlg('fxpdemo_feedback/Controller')
Override Fixed-Point Specifications
Most of the functionality in the Fixed-Point Tool is for use with the Fixed-Point Designer™ software. However, even if you do not have Fixed-Point Designer 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 that 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.
To simulate a model without using Fixed-Point Designer:
Enter the following at the command line.
set_param(gcs, 'DataTypeOverride', 'Double',... 'DataTypeOverrideAppliesTo','AllNumericTypes',... 'MinMaxOverflowLogging','ForceOff')
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');
Input Arguments
system_name
— Model or subsystem to analyze or convert
top-level model of current system
Model or subsystem to analyze or convert in the Fixed-Point Tool.
Data Types: string
Version History
Introduced before R2006a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)