User`s guide
Quick Start Tutorials
3-19
f14rtw_grt_rtw contains these generated source files:
The build directory also contains other files used in the build process, such as
the object (
.obj) files, a batch control file (f14rtw.bat), and a marker file
(
rtw_proj.tmw).
Tutorial 2: Data Logging
The Real-Time Workshop MAT-file data logging facility enables a generated
program to save system states, outputs, and simulation time at each model
execution time step. The data is written to a MAT-file, named (by default)
model.mat, where model is the name of your model. In this tutorial, data
generated by the model
f14rtw.mdl is logged to the file f14rtw.mat. Refer to
“Tutorial 1: Building a Generic Real-Time Program” on page 3-9 for
instructions on setting up
f14rtw.mdl in a working directory if you have not
done so already.
f14rtw.c Stand-alone C code that implements the model
f14rtw_data.c Initial parameter values used by the model
rt_nonfinite.c Function to initialize nonfinite types (Inf, NaN and
-Inf)
f14rtw.h An include header file containing definitions of
parameter and state variables
f14rtw_types.h Forward declarations of data types used in the code
f14rtw_private.h Header file containing common include definitions
rt_nonfinite.h Imported declarations for nonfinite types
rtwtypes.h Static include file for Simulink simstruct data types;
some embedded targets tailor this file to reduce
overhead, but GRT does not
rtmodel.h Master header file for including generated code in the
static main program (its name never changes, and it
simply includes
f14rtw.h)
f14rtw.mk Makefile generated from a template for the GRT
target