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.

Category: Simulation Target


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.


  • 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
Value: 'sf_incremental_build' | 'sf_nonincremental_build' | 'sf_make' | 'sf_make_clean' | 'sf_make_clean_objects'
Default: 'sf_incremental_build'

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics