Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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?