Guidelines for Naming Stateflow Objects
You can name Stateflow® objects with a combination of alphanumeric and underscore characters.
Names cannot begin with a numeric character or contain embedded spaces.
Name length should comply with the maximum identifier length enforced by Simulink® Coder™ software. You can set the Maximum identifier length parameter. The default is 31 characters and the maximum length you can specify is 256 characters.
Avoid using reserved keywords to name Stateflow objects. These keywords are part of the action language syntax.
Do not use the file names
sf.slx for Simulink models or
sf.sfx for standalone Stateflow charts in MATLAB®. Using these file names can shadow Stateflow program files and result in unpredictable behavior.
|Usage in Action Language Syntax||Keywords||Syntax References|
|Change detection||Detect Changes in Data and Expression Values|
||Operations for Complex Data in Stateflow|
|Data type operations|
|Data types||Specify Type of Stateflow Data|
|Edge detection||Detect Changes in Data and Expression Values|
Broadcast Local Events to Synchronize Parallel States
|Interface with MATLAB code||
Access MATLAB Functions and Workspace Data in C Charts
Model a Power Window Controller
||Supported Symbols in Actions|
|Messages||Control Message Activity in Stateflow Charts|
||Represent Operating Modes by Using States|
|State activity||Check State Activity by Using the in Operator|
Manage Textual Information by Using Strings
These operator names are reserved keywords only in charts that use C as the action language.
|Temporal logic||Control Chart Execution by Using Temporal Logic|