| Stateflow User's Guide | ![]() |
Simulation Targets
When you use Stateflow for simulation, Stateflow generates an S-function (MEX-file) for each Stateflow machine to support model simulation of Stateflow diagrams. The name for a simulation target in Stateflow is sfun.
Stateflow simulates its diagrams with generated code. Stateflow generates its own C-code to simulate Stateflow diagrams during simulation. When you generate code for simulation, this is referred to as generating a simulation target whose name is sfun.
| Generating C Code for Targets | Real-Time Workshop Targets | ![]() |
© 1994-2005 The MathWorks, Inc.