Terminate code
Include custom code in the generated model terminate function
Model Configuration Pane: Code Generation / Custom Code
Description
Specify custom code to include in the generated model terminate function.
Dependencies
A terminate function is generated only if you select the Terminate function required check box.
Settings
'' (default) | stringSpecify code to appear in the model's generated terminate function in the or model.c file.model.cpp
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Programmatic Use
Parameter: CustomTerminator |
| Type: character vector |
| Value: C code |
Default: '' |
Version History
Introduced before R2006a