Main Content

Terminate function required

Whether to generate terminate entry-point function

Model Configuration Pane: Code Generation / Interface

Description

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

Settings

On (default) | Off
On

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

Off

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

Recommended Settings

ApplicationSetting
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