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

Was this topic helpful?