Main Content

Terminate function

Description

Enter code statements that execute at the end of simulation.

Category: Simulation Target

Settings

Default: ' '

Code appears inside the model's terminate function in the model.c file.

Tip

  • Use this code to invoke functions that free memory allocated by the custom code or to perform other cleanup tasks.

Command-Line Information

Parameter: SimCustomTerminator
Type: character vector
Value: any C code
Default: ''

Recommended Settings

ApplicationSetting
Debugging

No recommendation

Traceability

No recommendation

Efficiency

No recommendation

Safety precaution

No recommendation

Related Topics