Terminate function required

Description

Specify whether to generate the model_terminate function.

Category: Code Generation > Interface

Settings

Default: on

On

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

Off

Does not generate a model_terminate function. Suppresses the generation of this function if you designed your application to run indefinitely and does not require a terminate function.

Dependencies

  • This parameter only appears for ERT-based targets.

  • This parameter requires an Embedded Coder® license when generating code.

Command-Line Information

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

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precaution

No recommendation

See Also

Related Topics