Documentation

Preparing for Data Typing and Scaling

Prepare for Data Typing and Scaling Overview

Configure blocks with constraints to avoid data type propagation errors.

Description

The block settings from this folder simplify the initial data typing and scaling. The optimal block configuration is achieved in later stages. The tasks in this folder are preparation for automatic data typing.

Tips

Block output and parameter minimum and maximum values can be specified in this step.

See Also

Review locked data type settings

Review blocks that currently have their data types locked down and will be excluded from automatic data typing.

Description

When blocks have their data types locked, the Fixed-Point Advisor excludes them from automatic data typing. This task identifies blocks that have locked data types so that you can unlock them.

Results and Recommended Actions

ConditionsRecommended Action

Blocks have locked data types.

Unlock data types on blocks that currently have locked data types.

The Fixed-Point Advisor provides separate results for each referenced model. For this task to pass, use Modify All or unlock data types on blocks for all referenced models.

Action Results

Clicking Modify All unlocks data types on blocks that currently have locked data types.

If your model contains referenced models, unlocks data types on blocks for all referenced models.

Verify Stateflow charts have strong data typing with Simulink

Verify all Stateflow® charts are configured to have strong data typing with Simulink® I/O.

Description

Identify mismatches between input or output fixed-point data in Stateflow charts and their counterparts in Simulink models.

    Note:   This task is preparation for automatic data typing, not actual automatic data typing.

Results and Recommended Actions

ConditionsRecommended Action

Stateflow charts do not have strong data typing with Simulink I/O.

Select the Use Strong Data Typing with Simulink I/O check box in the chart properties dialog.

The Fixed-Point Advisor provides separate results for each referenced model. For this task to pass, use Modify All or manually configure this setting in each referenced model.

Action Results

Clicking Modify All configures all Stateflow charts to have strong data typing with Simulink I/O.

If your model contains referenced models, configures this setting for all referenced models.

Specify block minimum and maximum values

Specify block output and parameter minimum and maximum values.

Description

Block output and parameter minimum and maximum values are used for fixed-point data typing in other tasks. Typically, they are determined during the design process based on the system you are creating.

    Note:   This task is preparation for automatic data typing, not actual automatic data typing.

Results and Recommended Actions

ConditionsRecommended Action

Minimum and maximum values are not specified for Inport blocks.

Specify minimum and maximum values for Inport blocks.

Warning if no simulation minimum or maximum for any signals.

If you are using simulation minimum and maximum data, return to "Create simulation reference data" to set up signal logging.

Tips

  • In this task, you can specify minimum and maximum values for any block.

  • You can promote simulation minimum and maximum values to output minimum and maximum values using the Model Advisor Result Explorer, launched by clicking the Explore Result button. In the center pane of the Model Advisor Result Explorer, use the check boxes in the PromoteSimMinMax column to promote values.

  • If you do not specify block minimum and maximum values, the Propose data types task might fail later in the conversion.

See Also

Batch-Fix Warnings or Failures in the Simulink documentation.

Was this topic helpful?