Main Content

Recommended Settings Summary for Model Configuration Parameters

The following table summarizes the impact of each configuration parameter on debugging, traceability, efficiency, and safety considerations, and indicates the factory default configuration settings for the GRT and ERT targets, unless otherwise specified.

For parameters that are available only when an ERT target is specified, see Recommended Settings Summary for Model Configuration Parameters (Embedded Coder).

For additional details, click the links in the Configuration Parameter column.

Mapping Application Requirements to the Solver Pane

Configuration ParameterSettings for Building CodeFactory Default

Debugging

Traceability

Efficiency

Safety precaution

Start time

No impact

No impact

No impact

0.0

0.0 seconds

Stop time

No impact

No impact

No impact

A positive value

10.0 seconds

Type

Fixed-step

Fixed-step

Fixed-step

Fixed-step

Variable-step (you must change to Fixed-step for code generation)

Solver

No impact

No impact

No impact

Discrete (no continuous states)

ode3 (Bogacki-Shampine)

Periodic sample time constraint

No impact

No impact

No impact

Specified or Ensure sample time independent

Unconstrained

Sample time properties

No impact

No impact

No impact

Period, offset, and priority of each sample time in the model; faster sample times must have higher priority than slower sample times

''

Treat each discrete rate as a separate task

No impact

No impact

No impact

No impact

On

Automatically handle rate transition for data transfer

No impact

No impact (for simulation and during development)

Off (for production code generation)

No impact

Off

Off

Mapping Application Requirements to the Data Import/Export Pane

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Input

No impact

No impact

No recommendation

No recommendation

Off

Initial state

No impact

No impact

No recommendation

No recommendation

Off

Time

No impact

No impact

No recommendation

No recommendation

On

States

No impact

No impact

No recommendation

No recommendation

Off

Output

No impact

No impact

No recommendation

No recommendation

On

Final states

No impact

No impact

No recommendation

No recommendation

Off

Signal logging

No impact

No impact

No recommendation

No recommendation

On

Record logged workspace data in Simulation Data Inspector

No impact

No impact

No recommendation

No recommendation

Off

Limit data points

No impact

No impact

No recommendation

No recommendation

On

Decimation

No impact

No impact

No recommendation

No recommendation

1

Format

No impact

No impact

No recommendation

No recommendation

Array

Output options

No impact

No impact

No recommendation

No recommendation

Refine output

Refine factor

No impact

No impact

No recommendation

No recommendation

1

Output times

No impact

No impact

No recommendation

No recommendation

'[]'

Mapping Application Requirements to the Math and Data Types Pane

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Default for underspecified data type

No impact

No impact

single

No impact

double

Use division for fixed-point net slope computation

No impact

No impact

On (when target hardware supports efficient division)

Off (otherwise)

No impact

off

Application lifespan (days)

No impact

No impact

Finite value

inf

auto

Use floating-point multiplication to handle net slope corrections

No impact

No impact

On (when target hardware supports efficient multiplication)
Off (otherwise)

No recommendation

Off

*The command-line value is reverse of the listed value.

Mapping Application Requirements to the Optimization Pane

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Default parameter behavior

Tunable (GRT)

Inlined (ERT)

Inlined

Inlined

No impact

Tunable (GRT)

Inlined (ERT)

Loop unrolling threshold

No impact

No impact

>0

No impact

5

Maximum stack size (bytes)

No impact

No impact

No impact

No impact

Inherit from target

Use memcpy for vector assignment

No impact

No impact

On

No impact

On

Memcpy threshold (bytes)

No impact

No impact

Accept default or determine target-specific optimal value

No impact

64

Inline invariant signals

Off

Off

On

No impact

Off

Remove code from floating-point to integer conversions that wraps out-of-range values

Off

Off

On (execution, ROM)

No impact (RAM)

No impact

Off

Use bitsets for storing state configuration

Off

Off

Off (execution, ROM)

On (RAM)

No impact

Off

Use bitsets for storing Boolean data

Off

Off

Off (execution, ROM)

On (RAM)

No impact

Off

Mapping Application Requirements to the Diagnostics Pane: Solver Tab

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Algebraic loop

error

No impact

No impact

error

warning

Minimize algebraic loop

No impact

No impact

No impact

error

warning

Block priority violation

No impact

No impact

No impact

error

warning

Consecutive zero-crossings violation

No impact

No impact

No impact

warning or error

error

Unspecified inheritability of sample time

No impact

No impact

No impact

error

warning

Solver data inconsistency

warning

No impact

none

No impact

warning

Automatic solver parameter selection

No impact

No impact

No impact

error

warning

Mapping Application Requirements to the Diagnostics Pane: Sample Time Tab

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Source block specifies -1 sample time

No impact

No impact

No impact

error

none

Multitask data transfer

No impact

No impact

No impact

error

error

Single task data transfer

No impact

No impact

No impact

none or error

none

Multitask conditionally executed subsystem

No impact

No impact

No impact

error

error

Tasks with equal priority

No impact

No impact

No impact

none or error

warning

Enforce sample times specified by Signal Specification blocks

No impact

No impact

No impact

error

warning

Mapping Application Requirements to the Diagnostics Pane: Data Validity Tab

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Signal resolution

No impact

No impact

No impact

Explicit only

Explicit only

Division by singular matrix

No impact

No impact

No impact

error

none

Underspecified data types

No impact

No impact

No impact

error

none

Simulation range checking

warning or error

warning or error

none

error

none

Wrap on overflow

No impact

No impact

No impact

error

warning

Saturate on overflow

No impact

No impact

No impact

error

warning

Inf or NaN block output

No impact

No impact

No impact

error

none

"rt" prefix for identifiers

No impact

No impact

No impact

error

error

Detect downcast

No impact

No impact

No impact

error

error

Detect overflow

No impact

No impact

No impact

error

error

Detect underflow

No impact

No impact

No impact

error

none

Detect precision loss

No impact

No impact

No impact

error

error

Detect loss of tunability

No impact

No impact

No impact

error

warning for GRT-based targets

error for ERT-based targets

Detect read before write

No impact

No impact

No impact

error

Enable all as warnings

Detect write after read

No impact

No impact

No impact

error

Enable all as warning

Detect write after write

No impact

No impact

No impact

error

Enable all as errors

Multitask data store

No impact

No impact

No impact

error

warning

Duplicate data store names

warning

No impact

none

No impact

none

Check undefined subsystem initial output

No impact

No impact

No impact

On

On

Check runtime output of execution context

No impact

No impact

No impact

On

Off

Mapping Application Requirements to the Diagnostics Pane: Type Conversion Tab

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Unnecessary type conversions

No impact

No impact

No impact

warning

none

Vector/matrix block input conversion

No impact

No impact

No impact

error

none

32-bit integer to single precision float conversion

No impact

No impact

No impact

warning

warning

Mapping Application Requirements to the Diagnostics Pane: Connectivity Tab

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Signal label mismatch

No impact

No impact

No impact

error

none

Unconnected block input ports

No impact

No impact

No impact

error

warning

Unconnected block output ports

No impact

No impact

No impact

error

warning

Unconnected line

No impact

No impact

No impact

error

none

Unspecified bus object at root Outport block

No impact

No impact

No impact

error

warning

Element name mismatch

No impact

No impact

No impact

error

warning

Bus signal treated as vector

No impact

No impact

No impact

error

none

Context-dependent inputs

No impact

No impact

No impact

Enable all

Use local settings

Mapping Application Requirements to the Diagnostics Pane: Compatibility Tab

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

S-function upgrades needed

No impact

No impact

No impact

error

none

Mapping Application Requirements to the Diagnostics Pane: Model Referencing Tab

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Model block version mismatch

No impact

No impact

No impact

No recommendation

none

Port and parameter mismatch

No impact

No impact

No impact

error

none

Invalid root Inport/Outport block connection

No impact

No impact

No impact

error

none

Unsupported data logging

No impact

No impact

No impact

error

warning

Mapping Application Requirements to the Diagnostics Pane: Saving Tab

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Block diagram contains disabled library links

No impact

No impact

No impact

No impact

warning

Block diagram contains parameterized library links

No impact

No impact

No impact

No impact

none

Mapping Application Requirements to the Diagnostics Pane: Stateflow Tab

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Unused data, events, messages, and functions

warning

No impact

No impact (for simulation and during development)

none (for production code generation)

warning

warning

Unexpected backtracking

warning

No impact

No impact

error

warning

Invalid input data access in chart initialization

warning

No impact

No impact

error

warning

No unconditional default transitions

warning

No impact

No impact (for simulation and during development)

none (for production code generation)

error

warning

Transition outside natural parent

warning

No impact

No impact (for simulation and during development)

none (for production code generation)

error

warning

Mapping Application Requirements to the Hardware Implementation Pane

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Device vendor

No impactNo impactNo impact

Select your Device vendor and Device type if they are available in the drop-down list.  If your Device vendor and Device type are not available, set device-specific values by using Custom Processor.

None if specified system target file is ert.tlc, realtime.tlc, or autosar.tlc. Otherwise, Determine by Code Generation system target file

Device vendor

No impactNo impactNo impact

Select your Device vendor and Device type if they are available in the drop-down list.  If your Device vendor and Device type are not available, set device-specific values by using Custom Processor.

Intel

Device type

No impact

No impact

No impact

Select your Device vendor and Device type if they are available in the drop-down list.  If your Device vendor and Device type are not available, set device-specific values by using Custom Processor.

x86–64 (Windows64)

Number of bits: char

No impact

No impact

Target specific

No recommendation for simulation without code generation.
For simulation with code generation, select your Device vendor and Device type if they are available in the drop-down list.  If your Device vendor and Device type are not available, set device-specific values by using Custom Processor.

char 8, short 16, int 32, long 32, long long 64, float 32, double 64, native 32, pointer 32

Largest atomic size: integer

No impact

No impact

Target specific

No recommendation for simulation without code generation.
For simulation with code generation, select your Device vendor and Device type if they are available in the drop-down list.  If your Device vendor and Device type are not available, set device-specific values by using Custom Processor.

integer Char, floating-point Float

Byte ordering

No impact

No impact

No impact

No recommendation for simulation without code generation.
For simulation with code generation, select your Device vendor and Device type if they are available in the drop-down list.  If your Device vendor and Device type are not available, set device-specific values by using Custom Processor.

Little Endian

Signed integer division rounds to

No impact for simulation and during development

Undefined for production code generation

No impact for simulation and during development

Zero or Floor for production code generation

No impact for simulation and during development

Zero for production code generation

No recommendation for simulation without code generation.
For simulation with code generation, select your Device vendor and Device type if they are available in the drop-down list.  If your Device vendor and Device type are not available, set device-specific values by using Custom Processor.

Zero

Shift right on a signed integer as arithmetic shift

No impact

No impact

On

No recommendation for simulation without code generation.
For simulation with code generation, select your Device vendor and Device type if they are available in the drop-down list.  If your Device vendor and Device type are not available, set device-specific values by using Custom Processor.

On

Support long long

No impact

No impact

On (execution, ROM)

No recommendation for simulation without code generation.
For simulation with code generation, select your Device vendor and Device type if they are available in the drop-down list.  If your Device vendor and Device type are not available, set device-specific values by using Custom Processor.

Off

Mapping Application Requirements to the Model Referencing Pane

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Rebuild

No impact

No impact

No impact

If any changes detected or Never

If you use the Never setting, then set the Never rebuild diagnostic parameter to Error if rebuild required

If any changes detected

Never rebuild diagnostic

No impact

No impact

No impact

error if rebuild required error if rebuild required

Enable parallel model reference builds

No impact

No impact

No impact

No impact

Off

MATLAB worker initialization for builds

No impact

No impact

No impact

No impact

None

Total number of instances allowed per top model

No impact

No impact

No impact

No recommendation

Multiple

Pass fixed-size scalar root inputs by value for code generation

No impact

No impact

No impact

No recommendation

Off

Minimize algebraic loop occurrences

No impact

No impact

No impact

No recommendation

Off

Propagate sizes of variable-size signals

No impact

No impact

No impact

No recommendation

Infer from blocks in model

Model dependencies

No impact

No impact

No impact

No recommendation

''

Mapping Application Requirements to the Simulation Target Pane: General Tab

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Ensure memory integrity

On

No impact

No recommendation

On

On

Echo expressions without semicolons

On

No impact

Off

No impact

On

Ensure responsiveness

On

No recommendation

No recommendation

No recommendation

On

Mapping Application Requirements to the Simulation Target Pane: Symbols Tab

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Reserved names

No impact

No impact

No impact

No recommendation

{}

Mapping Application Requirements to the Simulation Target Pane: Custom Code Tab

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Import custom code

On

No impact

No impact

On

On

Source file

No recommendation

No recommendation

No recommendation

No recommendation

''

Header file

No recommendation

No recommendation

No recommendation

No recommendation

''

Initialize function

No recommendation

No recommendation

No recommendation

No recommendation

''

Terminate function

No recommendation

No recommendation

No recommendation

No recommendation

''

Include directories

No impact

No impact

No impact

No recommendation

''

Source files

No impact

No impact

No impact

No recommendation

''

Libraries

No impact

No impact

No impact

No recommendation

''

Defines

No impact

No impact

No impact

No recommendation

''

Mapping Application Requirements to the Code Generation Pane: General Tab

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

System target file

No impact

No impact

No impact

No impact (GRT)

ERT based (ERT)

grt.tlc

Language

No impact

No impact

No impact

No impact

C

compexcep="155"Compiler optimization level

Optimizations off (faster builds)

Optimizations off (faster builds)

Optimizations on (faster runs) (execution)

No impact (ROM, RAM)

No impact

Optimizations off (faster builds)

Custom compiler optimization flags

Optimizations off (faster builds)

Optimizations off (faster builds)

Optimizations on (faster runs)

No impact

Optimizations off (faster builds)

Generate makefile

No impact

No impact

No impact

No impact

On

Make command

No impact

No impact

No impact

No recommendation

make_rtw

Template makefile

No impact

No impact

No impact

No impact

grt_default_tmf

Select objective

DebuggingNot applicable for GRT-based targetsExecution efficiency

No recommendation

Unspecified

Check model before generating code

On (proceed with warnings) or On (stop for warnings)On (proceed with warnings) or On (stop for warnings)On (proceed with warnings) or On (stop for warnings)On (proceed with warnings) or On (stop for warnings)Off

Generate code only

Off

No impact

No impact

No impact

Off

Verbose build

On

No impact

No impact

No recommendation

On

Retain .rtw file

On

No impact

No impact

No impact

Off

Profile TLC

On

No impact

No impact

No impact

Off

Start TLC debugger when generating code

On

No impact

No impact

No impact

Off

Start TLC coverage when generating code

On

No impact

No impact

No impact

Off

Enable TLC assertion

On

No impact

No impact

No recommendation

Off

Mapping Application Requirements to the Code Generation Pane: Report Tab

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Create code generation report

On

On

No impact

No recommendation

Off

Open report automatically

On

On

No impact

No impact

Off

Mapping Application Requirements to the Code Generation Pane: Comments Tab

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Include comments

On

On

No impact

No recommendation

On

Simulink block comments

On

On

No impact

No recommendation

On

Stateflow object comments

On

On

No impact

No recommendation

Off

Show eliminated blocks

On

On

No impact

No recommendation

On

Verbose comments for 'Model default' storage class

On

On

No impact

No recommendation

On

Operator annotations (Embedded Coder)

No impact

On

No impact

No recommendation

On

Mapping Application Requirements to the Code Generation Pane: Identifiers Tab

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Maximum identifier length

Valid value

>30

No impact

>30

31

Use the same reserved names as Simulation Target

No impact

No impact

No impact

No impact

Off

Reserved names

No impact

No impact

No impact

No impact

{}

Mapping Application Requirements to the Code Generation Pane: Custom Code Tab

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Use the same custom code settings as Simulation Target

No impact

No impact

No impact

No impact

Off

Source file

No impact

No impact

No impact

No impact

''

Header file

No impact

No impact

No impact

No impact

''

Initialize function

No impact

No impact

No impact

No impact

''

Terminate function

No impact

No impact

No impact

No impact

''

Include directories

No impact

No impact

No impact

No impact

''

Source files

No impact

No impact

No impact

No impact

''

Libraries

No impact

No impact

No impact

No impact

''

Defines

No impact

No impact

No impact

No impact

''

Mapping Application Requirements to the Code Generation Pane: Interface Tab

Configuration ParameterSettings for Building CodeFactory Default
DebuggingTraceabilityEfficiencySafety precaution

Standard math library

No impact

No impact

Valid library

No impact

C99 (ISO)

Code replacement library

No impact

No impact

Valid library

No impact

None

Shared code placement

Shared location (GRT)

No impact (ERT)

Shared location (GRT)

No impact (ERT)

No impact (execution, RAM)

Shared location (ROM)

No impact

Auto

Support: non-finite numbers

No impact

No impact

Off (Execution, ROM)

No impact (RAM)

Norecommendation

On

Code interface packaging

No impact

No impact

Reusable function or C++ class

No impact

Nonreusable function if Language is set to C; C++ class if Language is set to C++

Multi-instance code error diagnostic

Warning or Error

No impact

None

No impact

Error

Classic call interface

No impact

Off

Off (execution, ROM), No impact (RAM)

No recommendation

Off (except On for GRT models created before R2012a)

Single output/update function

On

On

On

No recommendation

On

MAT-file logging

On

No impact

Off

Off

On (GRT)

Off (ERT)

MAT-file variable name modifier (Embedded Coder)

No impact

No impact

No impact

No impact

rt_

Generate C API for: signals

No impact

No impact

No impact

No impact (development)

Off (production)

Off

Generate C API for: parameters

No impact

No impact

No impact

No impact (development)

Off (production)

Off

Generate C API for: states

No impact

No impact

No impact

No impact (development)

Off (production)

Off

Generate C API for: root-level I/O

No impact

No impact

No impact

No impact (development)

Off (production)

Off

ASAP2 interface

No impact

No impact

No impact

No impact (development)

Off (production)

Off

External mode

No impact

No impact

No impact

No impact (development)

Off (production)

Off

Transport layer

No impact

No impact

No impact

No impact

tcpip

MEX-file arguments

No impact

No impact

No impact

No impact

''

Static memory allocation

No impact

No impact

No impact

No impact

Off

Static memory buffer size

No impact

No impact

No impact

No impact

1000000