| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |

| On this page… |
|---|
Simulation Target: General Tab Overview Enable overflow detection (with debugging) Echo expressions without semicolons |
Configure the simulation target for a model that contains Embedded MATLAB Function blocks, Stateflow charts, or Truth Table blocks.
Set the parameters that appear.
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.

Enable debugging and animation during simulation of a model that contains Embedded MATLAB Function blocks, Stateflow charts, or Truth Table blocks.
Default: On
Enables debugging and animation of a model during simulation.
This action also enables the Stateflow Debugger.
Disables debugging and animation of a model during simulation.
This action also disables the Stateflow Debugger.
If you disable debugging and animation, faster model simulation occurs.
| Parameter: SFSimEnableDebug |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'on' |
| Application | Setting |
|---|---|
| Debugging | On |
| Traceability | No impact |
| Efficiency | Off |
| Safety precaution | On |
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.
Default: On
Enables overflow detection of data during simulation.
You must also select the Data Range check box in the Stateflow Debugger window.
Disables overflow detection of data during simulation.
If your model contains fixed-point data, enable overflow detection.
If you disable overflow detection, faster model simulation occurs.
| Parameter: SFSimOverflowDetection |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'on' |
| Application | Setting |
|---|---|
| Debugging | On |
| Traceability | No impact |
| Efficiency | Off |
| Safety precaution | On |
Detects violations of memory integrity in code generated for Embedded MATLAB function blocks and stops execution with a diagnostic.
Default: On
Detect violations of memory integrity in code generated for Embedded MATLAB function blocks and stops execution with a diagnostic message.
Does not detect violations of memory integrity in code generated for Embedded MATLAB function blocks.
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.
| Parameter: SimIntegrity |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'on' |
| Application | Setting |
|---|---|
| Debugging | On |
| Traceability | On |
| Efficiency | Off |
| Safety precaution | On |
Controlling Runtime Checks in the Simulink User's Guide.
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.
Default: On
Enables run-time output to appear in the MATLAB Command Window during simulation.
Disables run-time output from appearing in the MATLAB Command Window during simulation.
If you disable run-time output, faster model simulation occurs.
| Parameter: SFSimEcho |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'on' |
| Application | Setting |
|---|---|
| Debugging | On |
| Traceability | No impact |
| Efficiency | Off |
| Safety precaution | No impact |
Enable Embedded MATLAB Function blocks in Simulink models and Embedded MATLAB functions in Stateflow charts to speed up low-level matrix operations during simulation.
Default: 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.
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.
| Parameter: SimBlas |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'on' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | On |
| Safety precaution | No impact |
Enables responsiveness checks in code generated for Embedded MATLAB function blocks.
Default: On
Enables periodic checks for Ctrl+C breaks in code generated for Embedded MATLAB function blocks. Also allows graphics refreshing.
Disables periodic checks for Ctrl+C breaks in code generated for Embedded MATLAB function blocks. Also disables graphics refreshing.
| Parameter: SimCtrlC |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'on' |
| Application | Setting |
|---|---|
| Debugging | On |
| Traceability | On |
| Efficiency | Off |
| Safety precaution | On |
Controlling Runtime Checks in the Simulink User's Guide.
Specifies how you build the simulation target for a model that contains Embedded MATLAB Function blocks, Stateflow charts, or Truth Table blocks.
Default: Incremental build
This option rebuilds only those portions of the target that you changed since the last build.
This option rebuilds the target, including libraries, from scratch.
This option invokes the make process without generating code.
This option deletes both generated source code and executable files.
This option deletes only executable files.
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.
| Parameter: SimBuildMode |
| Type: string |
| Value: 'sf_incremental_build' | 'sf_nonincremental_build' | 'sf_make' | 'sf_make_clean' | 'sf_make_clean_objects' |
| Default: 'sf_incremental_build' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
![]() | Model Referencing Pane | Simulation Target Pane: Symbols | ![]() |

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 |