| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Real-Time Workshop |
| Contents | Index |
| Learn more about Real-Time Workshop |
If your application model uses Stateflow software to simulate events and you have a Stateflow Coder product license installed, consider the following information:
You can configure a model so that the code generator includes:
Stateflow object comments and descriptions in generated code. See Simulink block / Stateflow object comments and Stateflow object descriptions.
A summary of Stateflow objects and the corresponding code location in code generation reports for traceability. See Traceable Stateflow objects.
If you run a Simulink model in external mode, you can animate states and view Stateflow test points in floating scopes and signal viewers. See Communicating With Code Executing on a Target System Using Simulink External Mode.
You can generate reusable code from a Stateflow chart, or from a subsystem containing a chart, except in the following cases:
The Stateflow chart contains exported graphical functions.
The Stateflow model contains events that have a machine parent.
For more information on generating reusable code, see Creating Reusable Components.
![]() | Protecting Intellectual Property in Shared Model Components | Defining Data Representation and Storage for Code Generation | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |