Stateflow | ![]() ![]() |
Code Files
Code files for the Simulation target (sfun
) are generated for each model and placed in the subdirectory sfprj/build/<model>/sfun/src
of the current directory, where <model>
represents the name of the model.
The code generated for the simulation target sfun
is organized into the following files:
<model>_sfun.h
is the machine header file. It contains the following:
<model>_sfun.c
is the machine source file. It includes the machine header file and all the chart header files (described below) and contains the following:
<model>_sfun_registry.c
is a machine registry file that contains Simulink interface code.
<model>_sfun_cn.h
is the chart header file for the chart chartn
, where n
= 1, 2, 3, and so on, depending on how many charts your model has (see the following note). This file contains type definitions of the chart-specific data structures that hold chart-parented local data and states.
<model>_sfun_cn.c
is the chart source file for chartn
, where n
= 1, 2, 3, and so on, depending on how many charts your model has (see the following note). This chart source file includes the machine header file and the corresponding chart header file. It contains the following:
![]() | DLL Files | Makefiles | ![]() |