This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

db_0151: State machine patterns for transition actions

ID: Title

db_0151: State machine patterns for transition actions

Priority

Strongly recommended

Scope

MAAB

MATLAB Versions

All

Prerequisites

None

Description

The following patterns are used for transition actions within Stateflow® state machines:

Equivalent FunctionalityState Machine Pattern

One transition action:

action; 

Two or more transition actions, multiline form:

(Two or more transition actions in one line are not allowed.)

action1;  
action2;  
action3;

Rationale

  • Readability

  • Workflow

  • Verification and Validation

  • Code Generation

  • Simulation

Last Changed

V2.2

Model Advisor Check

By Task > Modeling Standards for MAAB > Stateflow > Check transition actions in Stateflow charts

For check details, see Check transition actions in Stateflow charts (Simulink Check).

Introduced in R2010a