User`s guide

Rapid Prototyping Program Framework
6-35
Application Modules for Application Components
When the Real-Time Workshop generates code, it produces the following files:
model.c The C code generated from the Simulink block diagram. This code
implements the block diagram’s system equations as well as performing
initialization and updating outputs.
model.h — Header file containing the block diagram’s simulation
parameters, I/O structures, work structures, etc.
model_export.h Header file containing declarations of exported signals
and parameters.
model.prm Header file containing parameter and other structure
definitions.
model.reg — Header file included at the bottom of model.c.Thisfile
contains the model registration,
MdlInitializeSizes,and
ModelInitializeSampleTimes.
These files are named for the Simulink model from which they are generated;
model is replaced with the actual model name.
If you have created custom blocks using C MEX S-functions, you need the
source code for these S-functions available during the build process.