| Real-Time Workshop® Embedded Coder™ | ![]() |
void model_terminate(void)
The Real-Time Workshop Embedded Coder software generates the model_terminate function for a Simulink model when the Terminate function required configuration option is selected (the default) in the Configuration Parameters dialog box. model_terminate contains all model termination code and should be called as part of system shutdown.
When model_terminate is called, blocks that have a terminate function execute their terminate code. If logging is enabled, model_terminate ends data logging.
The model_terminate function should be called only once.
If your application runs indefinitely, you do not need the model_terminate function. To suppress the function, clear the Terminate function required configuration option in the Configuration Parameters dialog box.
model_initialize, model_SetEventsForThisBaseStep, model_step
Model Entry Points in the Real-Time Workshop Embedded Coder documentation
![]() | model_step | registerCFunctionEntry | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |