Stateflow User's Guide Previous page   Next Page

Building Targets


Stateflow generates code that lets you execute Stateflow diagrams on target computers. Stateflow builds a special simulation target (sfun) that lets you simulate your Stateflow application in Simulink. Stateflow also works with Simulink to let you build a Real-Time Workshop (RTW) target application (rtw) for running Stateflow and Simulink applications on other computers. Finally, Stateflow lets you build custom targets from Stateflow applications only.
Overview of Stateflow Targets
Describes how Stateflow and its companion tools can build targets for virtually any computer.
Adding a Stateflow Target
Tells you how to add an RTW or custom target to a Simulink model. Simulation targets are created by default when you create a Simulink model.
Configuring a Simulation Target for Stateflow
Tells you how to configure the simulation target (named sfun) for a Simulink model to build a simulation application for the model.
Configuring Real-Time Workshop for Stateflow
Tells you how to configure the RTW target (named rtw) for a Simulink model to build an embedded application for the model.
Configuring a Custom Target in Stateflow
Tells you how to configure a custom target (named other than sfun or rtw) for a Simulink model to generated code for the Stateflow diagrams in the model.
Integrating Custom Code with Stateflow Targets
Tells you how to configure the custom code you include in the target you build. Also tells you how to invoke Stateflow graphical functions from your custom code.
Starting the Build
Describes how to start building a simulation target (sfun) or a Real-Time Workshop target (rtw).
Parsing Stateflow Diagrams
The parser evaluates the graphical and nongraphical objects in each Stateflow machine against the supported Stateflow notation and the action language syntax. This section describes the Stateflow parser and how its messages appear.
Resolving Event, Data, and Function Symbols
Describes the process Stateflow uses when attempting to resolve undefined data, event, and graphical function symbols when you choose to simulate the model, build a target, or generate code.
Error Messages
Describes the error messages you might receive when you build a target or parse a diagram.
Generated Files
Describes the files that Stateflow generates when you generate code for a target or build the target.


Previous page  Understanding Embedded MATLAB Function Model Coverage Overview of Stateflow Targets Next page

© 1994-2005 The MathWorks, Inc.