Command-Line Interface for the Fixed-Point Tool
Use the DataTypeWorkflow.Converter class
and its associated methods to perform the same fixed-point conversion tasks as the
iterative fixed-point conversion workflow in the Fixed-Point Tool. Use the fxpopt function and its associated objects and methods to perform the
same fixed-point conversion tasks as the optimized fixed-point conversion workflow in
the Fixed-Point Tool. The range collection workflow of the
Fixed-Point Tool does not have an equivalent command-line interface. To
access the full set of statistics and visualizations that this workflow provides, use
the app interface.
Note
Do not use the Fixed-Point Tool and the command-line interface in the same conversion session.
These tables compare the functionality of the command-line interfaces and the app at each step of the workflow to help you decide which to use.
Iterative Fixed-Point Conversion Workflow
| Workflow Step | Fixed-Point Tool | Command-Line Interface |
|---|---|---|
Set up system under design. | Setup pane | |
| Collect ranges using simulation ranges, derived range analysis, or both. |
| |
Run multiple simulations using simulation inputs. | Simulation Inputs section of Setup pane | |
Specify signal tolerances. | Signal Tolerances section of Setup pane | |
Check for and replace unsupported functions in MATLAB Function blocks. | In R2026a: Function Replacement section of Setup pane | In R2025a:
|
Prepare system for conversion. | Prepare button | Not supported Use
|
Configure data type override settings for range collection. | Collect Ranges button arrow | |
Edit data type proposal settings. | Settings button arrow | |
Propose data types. | Propose Data Types button | |
Edit and selectively apply proposed data types. | Results spreadsheet | Not supported |
Apply proposed data types and function replacements. | Apply Data Types button | |
Verify new fixed-point settings and analyze results. |
| |
Restore original model. | Restore Original Model button | Not supported |
Optimized Fixed-Point Conversion Workflow
| Workflow Step | Fixed-Point Tool | Command-Line Interface |
|---|---|---|
Set up system under design. | Setup pane | |
Include derived ranges in range analysis. | Range Collection Mode section of Setup pane |
|
Run multiple simulations using simulation inputs. | Simulation Inputs section of Setup pane |
|
Specify signal tolerances. | Signal Tolerances section of Setup pane | |
Specify known parameter data types. | Not supported | |
Prepare system for conversion. | Prepare button | Not supported Use the
|
Configure data type override settings for range collection phase of optimization. | Not supported |
|
| Configure optimization options. | Optimization Options button arrow | |
Optimize data types. | Optimize Data Types button | |
Explore optimization solutions and apply result. |
| |
Verify new fixed-point settings and analyze results. | Compare button | |
Export optimization script. | Export Script button | Not applicable |
Restore original model. | Restore Original Model button |
See Also
Fixed-Point Tool | DataTypeWorkflow.Converter | fxpopt