Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

Simulation Target Pane: General

Simulation Target: General Tab Overview

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

Configuration

Set the parameters that appear.

Dependency

If you have a Stateflow license, the title becomes Embedded MATLAB and Stateflow. This title also appears if you do not have a Stateflow license, but load a model that contains Stateflow charts or Truth Table blocks. In either case, the parameters remain the same.

See Also

Enable debugging/animation

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

Settings

Default: On

On

Enables debugging and animation of a model during simulation.

This action also enables the Stateflow Debugger.

Off

Disables debugging and animation of a model during simulation.

This action also disables the Stateflow Debugger.

Tip

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 Embedded 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.

You must also select the Data Range check box in the Stateflow Debugger window.

Off

Disables overflow detection of data during simulation.

Tips

Command-Line Information

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

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityNo impact
EfficiencyOff
Safety precautionOn

See Also

Ensure memory integrity

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

Settings

Default: On

On

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

Off

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

    Caution   Without these checks, violations will result in unpredictable behavior.

Tips

Command-Line Information

Parameter: SimIntegrity
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 Embedded 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

Command-Line Information

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

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityNo impact
EfficiencyOff
Safety precautionNo impact

See Also

Use BLAS library for faster simulation

Enable Embedded MATLAB Function blocks in Simulink models and Embedded MATLAB functions in Stateflow charts to speed up low-level matrix operations during simulation.

Settings

Default: On

On

Embedded MATLAB Function blocks in Simulink models and Embedded MATLAB functions in Stateflow charts use Basic Linear Algebra Subprograms (BLAS) libraries for low-level matrix operations.

Off

Embedded MATLAB Function blocks in Simulink models and Embedded MATLAB functions in Stateflow charts do not use Basic Linear Algebra Subprograms (BLAS) libraries for low-level matrix operations.

Command-Line Information

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

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyOn
Safety precautionNo impact

See Also

Ensure responsiveness

Enables responsiveness checks in code generated for Embedded MATLAB function blocks.

Settings

Default: On

On

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

Off

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

    Caution   Without these checks the only way to end a long-running execution may be to terminate MATLAB.

Command-Line Information

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

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityOn
EfficiencyOff
Safety precautionOn

See Also

Simulation target build mode

Specifies how you build the simulation target for a model that contains Embedded 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

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

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS