Documentation Center

  • Trials
  • Product Updates

Simulation Target Pane: General

Simulation Target: General Tab Overview

Configure the simulation target for a model that contains MATLAB Function blocks, Stateflow® charts, or Truth Table blocks.

Configuration

Set the parameters that appear.

Tip

To open the Simulation Target pane, in the Simulink® Editor, select Simulation > Model Configuration Parameters > Simulation Target.

See Also

Enable debugging/animation

Enable debugging and animation during simulation of a model that contains MATLAB Function blocks, Stateflow charts, or Truth Table blocks.

Settings

Default: On

On

Enables debugging and animation of a model during simulation.

If you have a Stateflow license, this action also enables the Stateflow Debugger.

Off

Disables debugging and animation of a model during simulation.

If you have a Stateflow license, this action also disables the Stateflow Debugger.

Tip

  • If you disable debugging and animation, faster model simulation occurs.

Command-Line Information

Parameter: SFSimEnableDebug
Type: string
Value: 'on' | 'off'
Default: 'on'

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityNo impact
EfficiencyOff
Safety precautionOn

See Also

Enable overflow detection (with debugging)

Enable overflow detection of data during simulation of a model that contains MATLAB Function blocks, Stateflow charts, or Truth Table blocks. Overflow occurs for data when a value assigned to it exceeds the numeric capacity of the data type.

Settings

Default: On

On

Enables overflow detection of data during simulation.

If you have a Stateflow license, you must also select the Data Range check box in the Stateflow Debugger window.

Off

Disables overflow detection of data during simulation.

Tips

  • If your model contains fixed-point data, enable overflow detection.

  • If you disable overflow detection, faster model simulation occurs.

Command-Line Information

Parameter: SFSimOverflowDetection
Type: string
Value: 'on' | 'off'
Default: 'on'

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityNo impact
EfficiencyOff
Safety precautionOn

See Also

Ensure responsiveness

Enables responsiveness checks in code generated for MATLAB Function blocks.

Settings

Default: On

On

Enables periodic checks for Ctrl+C breaks in code generated for MATLAB Function blocks. Also allows graphics refreshing.

Off

Disables periodic checks for Ctrl+C breaks in code generated for MATLAB Function blocks. Also disables graphics refreshing.

    Caution   Without these checks, the only way to end a long-running execution might be to terminate the MATLAB® session.

Command-Line Information

Parameter: SimCtrlC
Type: string
Value: 'on' | 'off'
Default: 'on'

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityOn
EfficiencyOff
Safety precautionOn

See Also

Echo expressions without semicolons

Enable run-time output in the MATLAB Command Window, such as actions that do not terminate with a semicolon. This behavior applies to a model that contains MATLAB Function blocks, Stateflow charts, or Truth Table blocks.

Settings

Default: On

On

Enables run-time output to appear in the MATLAB Command Window during simulation.

Off

Disables run-time output from appearing in the MATLAB Command Window during simulation.

Tip

  • If you disable run-time output, faster model simulation occurs.

Command-Line Information

Parameter: SFSimEcho
Type: string
Value: 'on' | 'off'
Default: 'on'

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityNo impact
EfficiencyOff
Safety precautionNo impact

See Also

Ensure memory integrity

Detects violations of memory integrity in code generated for MATLAB Function blocks and stops execution with a diagnostic.

Settings

Default: On

On

Detect violations of memory integrity in code generated for MATLAB Function blocks and stops execution with a diagnostic message.

Off

Does not detect violations of memory integrity in code generated for MATLAB Function blocks.

    Caution   Without these checks, violations result in unpredictable behavior.

Tips

  • The most likely cause of memory integrity issues is accessing an array out of bounds.

  • Only disable these checks if you are sure that your code is safe and that all array bounds and dimension checking is unnecessary.

Command-Line Information

Parameter: SimIntegrity
Type: string
Value: 'on' | 'off'
Default: 'on'

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityOn
EfficiencyOff
Safety precautionOn

See Also

Generate typedefs for imported bus and enumeration types

Determines typedef handling and generation for imported bus and enumeration data types in Stateflow and MATLAB Function blocks.

Settings

Default: Off

On

The software will generate its own typedefs for imported bus and enumeration types.

Off

The software will not generate its own typedefs for imported bus and enumeration types, and will use definitions in the included header file. This setting requires you to include header files in Configuration Parameters, under Simulation Target > Custom Code > Header file.

Tips

  • This selection applies if you are using imported bus or enumeration data types in Stateflow and MATLAB Function blocks.

Command-Line Information

Parameter: SimGenImportedTypeDefs
Type: string
Value: 'on' | 'off'
Default: 'off'

Simulation target build mode

Specifies how you build the simulation target for a model that contains MATLAB Function blocks, Stateflow charts, or Truth Table blocks.

Settings

Default: Incremental build

Incremental build

This option rebuilds only those portions of the target that you changed since the last build.

Rebuild all (including libraries)

This option rebuilds the target, including libraries, from scratch.

Make without generating code

This option invokes the make process without generating code.

Clean all (delete generated code/executables)

This option deletes both generated source code and executable files.

Clean objects (delete executables only)

This option deletes only executable files.

Tips

  • The default Incremental build is a good choice for most models. This action takes place whenever you simulate your model.

  • Set Rebuild all (including libraries) if you have changed your compiler or updated your object files since the last simulation. For example, use this option to rebuild the simulation target to include custom code changes.

  • Set Make without generating code when you have custom source files that you must recompile in an incremental build mechanism that does not detect changes in custom code files.

Command-Line Information

Parameter: SimBuildMode
Type: string
Value: 'sf_incremental_build' | 'sf_nonincremental_build' | 'sf_make' | 'sf_make_clean' | 'sf_make_clean_objects'
Default: 'sf_incremental_build'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Was this topic helpful?