Skip to Main Content Skip to Search
Product Documentation

Rules for Using Simulink Functions in Stateflow Charts

 Do not call Simulink functions in state during actions or transition conditions of continuous-time charts

 Do not call Simulink functions in default transitions if you enable execute-at-initialization mode

 Use only alphanumeric characters or underscores when naming input and output ports for a Simulink function

 Convert discontiguous signals to contiguous signals for Simulink functions

 Do not export Simulink functions

 Use the Stateflow Editor to rename a Simulink function

 Do not use Simulink functions in Moore charts

 Do not generate HDL code for Simulink functions

  


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