Documentation Center

  • Trial Software
  • Product Updates

Modeling Guidelines for Stateflow Charts

These guidelines promote efficient modeling of charts with events, states, and transitions.

 Use signals of the same data type for input events

 Use a default transition to mark the first state to become active among exclusive (OR) states

 Use condition actions instead of transition actions whenever possible

 Use explicit ordering to control the testing order of a group of outgoing transitions

 Verify intended backtracking behavior in flow charts

 Use a superstate to enclose substates that share the same state actions

 Use MATLAB functions for performing numerical computations in a chart

 Use descriptive names in function signatures

 Use history junctions to record state history

 Do not use history junctions in states with parallel (AND) decomposition

 Use explicit ordering to control the execution order of parallel (AND) states

Was this topic helpful?