Terminate function

Specify custom code to include in the generated model terminate function.

Description

Specify custom code to include in the generated model terminate function.

Category: Code Generation > Custom Code

Settings

Default: ''

Specify code to appear in the model's generated terminate function in the model.c or model.cpp file.

Dependency

A terminate function is generated only if you select the Terminate function required check box.

Command-Line Information

Parameter: CustomTerminator
Type: character vector
Value: C code
Default: ''

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics