Chart Programming Basics

Build charts by following these Stateflow® guidelines.

Create new and efficient Stateflow charts. Decide whether to design your chart by using MATLAB® or C as the action language. Find and correct errors in your chart with the Stateflow editor.


Basic Approach for Modeling Event-Driven Systems

Basic approach for modeling event-driven systems with Stateflow charts

Overview of Stateflow Objects

Introduces graphical and nongraphical objects that are organized into a hierarchical structure

Modeling Guidelines for Stateflow Charts

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

Model Event-Driven System

Learn how to program a chart based on the operating modes of the system.

Identify Data Using Dot Notation

How to use dot notation for qualified data names

Modify the Action Language for a Chart

Describes how to change the action language property for a chart.

Manage Stateflow Data, Events, and Messages in the Symbols Window

Add, delete, and manage nongraphical objects in the Stateflow editor

Add and Modify Data, Events, and Messages in the Symbols Window

Add objects to your chart in the Stateflow Editor

Stateflow Editor Operations

Describes each part of the Stateflow Editor window that displays the chart you create. Shows you how to customize Stateflow Editor menus.

Use C Chart to Model Event-Driven System

Explains the basic workflow for building a Stateflow chart with C expressions

Differences Between MATLAB and C as Action Language Syntax

MATLAB syntax in states and transitions

Action Language Auto Correction

Auto correction description for MAL charts.

Rules for Naming Stateflow Objects

You can name Stateflow objects with any combination of alphanumeric and underscore characters.

Modeling Rules That Stateflow Detects During Edit Time

Discover modeling errors as you design in the Stateflow editor.

Was this topic helpful?