Terminate function required
Description
Specify whether to generate the
function.model
_terminate
Category: Code Generation > Interface
Settings
Default: on
On
Generates a
function. This function contains model termination code and should be called as part of system shutdown.model
_terminateOff
Does not generate a
function. Suppresses the generation of this function if you designed your application to run indefinitely and does not require a terminate function.model
_terminate
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
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No recommendation |