model_terminate
Generated C/C++ entry-point function that contains termination code for a金宝appmodel
Syntax
Description
is a generated C or C++ entry-point function called one time to execute termination code for a Simulink®model.void
model_terminate(void
)
The generated calling interface of the termination entry-point function for a model differs depending on theLanguage和Code interface packagingparameters. For more information, seeCode interface packaging. With Embedded Coder®, you can choose whether to generate a termination function for a model by using theTerminate function requiredparameter. If your application runs indefinitely, clear this parameter. For more information, seeTerminate function required(Embedded Coder).
To preview and customize the name of a generated C terminate entry-point function an Embedded Coder license is required. To preview the terminate entry-point function, open the Code Mappings editor and click theFunctionstab. To customize the function name, in the功能名称column click and edit the spreadsheet directly. To customize the function using a template, in theFunction Customization Template列选择一个模板以应用于该功能。有关更多信息,请参阅Configure Names for Individual C Entry-Point Functions(Embedded Coder), andConfigure Default Code Generation for Functions(Embedded Coder).
要查看生成的终止入口点功能,请打开Codeview or Code Generation Report and examine the source code for your model. For more information see,Analyze the Generated Code Interface(Embedded Coder).