User`s guide

2 Building an Application
2-26
model_dt.h
C header file used for supporting External Mode. Declares structures that
contain data type and data type transition information for generated model
data structures.
model_capi.h
An interface header file between the model source code and the generated
C-API. See “C-API for Interfacing with Signals and Parameters” in the
Real-Time Workshop User’s Guide documentation for more information.
model_capi.c
C source file that contains data structures that describe the model’s signals
and parameters without using external mode. See “C-API for Interfacing
with Signals and Parameters” in the Real-Time Workshop User’s Guide
documentation for more information.
In addition, when you select the
Generate HTML report option, Real-Time
Workshop generates a set of
.html files (one for each source file plus a
model_contents.html index file) in the /html subdirectory within your build
directory.
The above source files have dependency relationships, and there are
additional file dependencies which you may need to take into account. These
are described in “Generated Source Files and File Dependencies” in the
Real-Time Workshop User’s Guide documentation.
Directories Used During the Build Process
Real-Time Workshop places output files in three directories during the build
process:
The working directory
If you choose to generate an executable program file, Real-Time Workshop
writes the file
model.exe (on PC) or model (on UNIX) to your working
directory.
The build directory—
model_target_rtw
A subdirectory within your working directory. The build directory name is
model_target_rtw, where model is the name of the source model and
target is the selected target type (for example, grt for the generic real-time
target). The build directory stores generated source code and all other files
created during the build process (except the executable program file).