Main Content

Allow automatic unit conversions

Option to automatically convert units that have known mathematical relationship

Model Configuration Pane: Diagnostics

Description

This parameter specifies whether the software automatically performs unit conversions in the model for cases where the units to convert have a known mathematical relationship. When Simulink® successfully converts signal units at a block port, it displays .

Settings

on (default) | off
on

The software automatically converts units for cases where the units have a known mathematical relationship. For more information, see Converting Units.

off

The software does not perform automatic unit conversion in the model. To convert units in the model, use the Unit Conversion block.

Recommended Settings

The table summarizes recommended values for this parameter based on considerations related to code generation.

ApplicationSetting
DebuggingNo recommendation
TraceabilityNo recommendation
EfficiencyNo recommendation
Safety precautionNo recommendation

Programmatic Use

Parameter: AllowAutomaticUnitConversions
Type: string | character vector
Values: 'on' | 'off'
Default: 'on'

Version History

Introduced in R2016a