| Stateflow User's Guide | ![]() |
What Is a Stateflow Target?
A Stateflow target is a container in Stateflow for specifying the generated code, custom code, and build type used in building an application or producing generated code from the Stateflow blocks in a Simulink model. There are three types of Stateflow targets:
The Stateflow simulation target (named sfun) is a container in Stateflow for specifying the generated code, custom code, and build type used for Stateflow blocks in creating a Simulink simulation target. When you build a simulation target for a Simulink model, the information from a Stateflow simulation target is combined with the information for the rest of the model in a Simulink simulation target and the target is built.
The Stateflow RTW target (named rtw) is a container in Stateflow for specifying the generated code, custom code, and build type used for Stateflow blocks in creating a Simulink RTW target for library models. When you build an RTW target for a Simulink model, the information from a Stateflow RTW target is combined with the information for the rest of the model in a Simulink RTW target. Inputs to and outputs from Stateflow blocks in a library model can only be resolved when a Stateflow target is combined with the Simulink target during building. Using Stateflow RTW targets lets you specify target information for the Stateflow blocks in a library model before the model is used in building an application.
sfun or rtw) is a convenience for collecting the generated code for the Stateflow charts used in a model. After you collect the code, you can use this code at your own discretion in building your own applications.
| What Is a Simulink RTW Target? | How Do You Build a Target? | ![]() |
© 1994-2005 The MathWorks, Inc.