Documentation

Function and Class Interfaces

Generate and access entry-point functions in model code

Select theConfiguration Parameters>Code Generation>Interface>Code interface packagingto specify the calling interface for functions that represent entry points in generated code for a model. Call the entry-point functions to initialize, run, and shut down the generated code.

Functions

model_initialize Initialization entry-point function in generated code for Simulink model
model_step Step routine entry point in generated code for Simulink model
model_terminate Termination entry point in generated code for Simulink model

Topics

Execution of Code Generated from a Model

Execute code generated from single-tasking and multitasking models for rapid-prototyping and embedded system run-time environments.

Configure Code Generation for Model Entry-Point Functions

Learn about generated entry-point functions and ways to control their interfaces and whether the functions are reusable and reside in specific areas of memory.

Rapid Prototyping Model Functions

Generate rapid prototyping code.

Generate Reentrant Code from Top Models

Generate reusable, reentrant code from top models.

Generate C++ Class Interface to Model or Subsystem Code

Generate a C++ class interface to code generated from a model or subsystem.