Skip to Main Content Skip to Search
Product Documentation

Choosing a Procedure to Simulate a Model

Guidelines for Simulation

When you simulate a model, use these guidelines to choose the right procedure.

Do this step...When...

Speed up simulation

You have a large model with many blocks.

See Speeding Up Simulation.

Include custom code

You want to take advantage of legacy code that augments model capabilities and also include custom variables and functions that you share between your custom code and Stateflow generated code.

Choose a custom compiler

You use the UNIX version of Stateflow software or do not wish to use the default lcc compiler.

See Choosing a Compiler.

Include custom code only for library charts

You want to provide custom code in a portable, self-contained library for use in multiple models.

Choosing the Right Procedure for Simulation

To choose the right procedure for simulation, find the highlighted block that describes your goal and see the corresponding section in Procedures for Simulation. These procedures apply to models that contain Chart or Truth Table blocks.

  


Free Stateflow Interactive Kit

Learn how engineers use Stateflow to model state machines in their Simulink models.


Get free kit

Trials Available

Try the latest version of Stateflow.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS