Stateflow User's Guide Previous page   Next Page

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.


Previous page  Generating C Code for Targets Real-Time Workshop Targets Next page

© 1994-2005 The MathWorks, Inc.