Stateflow | ![]() ![]() |
Overview of Stateflow Targets
A target is a program that executes a Stateflow model or a Simulink model containing a Stateflow machine. Stateflow and companion tools can build targets for virtually any computer. The following sections describe targets in Stateflow:
Target Types
Simulink and its companion tools can build the following types of targets:
sfun
) is a compiled Simulink S-function (MEX-file) that enables Simulink to simulate a Stateflow model. See Parsing Stateflow Diagrams for more information.
rtw
) is an executable program that implements a Simulink model. The model represented by an RTW target can include non-Stateflow as well as Stateflow blocks. An RTW target can also run on computers that do not have a floating-point instruction set. Building an RTW target requires the Real-Time Workshop and Stateflow Coder.
sfun
or rtw
) that they can use in building customized applications.
![]() | Building Targets | Building a Target | ![]() |