Main Content

Terminate function required

Whether to generate terminate entry-point function

Model Configuration Pane: Code Generation / Interface


The Terminate function required parameter specifies whether to generate a model_terminate entry-point function.


On (default) | Off

Enables generation of a model_terminate function. This function contains model termination code and should be called as part of system shutdown.


Disables generation of a model_terminate function. Clear this parameter if you designed your application to run indefinitely.

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precaution

No recommendation

Programmatic Use

Parameter: IncludeMdlTerminateFcn
Type: character vector
Value: 'on' | 'off'
Default: 'on'

Version History

Introduced before R2006a