Contenido principal

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

DataTypeWorkflow.Converter

Collect ranges using simulation ranges, derived range analysis, or both.
  • Range Collection Mode section of Setup pane

  • Collect Ranges button

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 DataTypeWorkflow.findDecoupledSubsystems to list blocks isolated by the Fixed-Point Tool during the prepare step.

Configure data type override settings for range collection.

Collect Ranges button arrow

Edit data type proposal settings.

Settings button arrow

DataTypeWorkflow.ProposalSettings

Propose data types.

Propose Data Types button

proposeDataTypes

Edit and selectively apply proposed data types.

Results spreadsheet

Not supported

Apply proposed data types and function replacements.

Apply Data Types button

applyDataTypes

Verify new fixed-point settings and analyze results.

  • Simulate with Embedded Types button

  • Run to compare in SDI dropdown

  • Compare Results button

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

UseDerivedRangeAnalysis property of AdvancedOptions

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 HandleUnsupported property of AdvancedOptions to specify how the optimizer handles unsupported blocks.

Configure data type override settings for range collection phase of optimization.

Not supported

Configure optimization options.

Optimization Options button arrow

fxpOptimizationOptions

Optimize data types.

Optimize Data Types button

fxpopt

Explore optimization solutions and apply result.

  • Result pane

  • Apply and Compare button

explore

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

| |

Topics