| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Stateflow |
| Contents | Index |
| Learn more about Stateflow |
| On this page… |
|---|
You can name Stateflow objects with any 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 Real-Time Workshop® code generation software. You can set this parameter in the Real-Time Workshop > Symbols pane of the Configuration Parameters dialog box. The default is 31 characters and the maximum length you can specify is 256 characters.
For more information, see Maximum identifier length in the Real-Time Workshop reference documentation.
You cannot use the following keywords to name Stateflow objects. These keywords are part of the Stateflow action language (see Using Actions in Stateflow Charts for details).
| Usage in Action Language | Keywords | References |
|---|---|---|
| Change detection | hasChanged, hasChangedFrom, hasChangedTo | Using Change Detection in Actions |
| Complex data | complex, imag, real | Using Operators to Handle Complex Numbers |
| Data types | boolean, double, int8, int16, int32, single, uint8, uint16, uint32 | Setting Data Properties in the Data Dialog Box |
| Data type operations | cast, fixdt, type | Type Cast Operations |
| Explicit events | send | Broadcasting Events in Actions |
| Implicit events | change, chg, tick, wakeup | Using Implicit Events |
| Literal symbols | false, inf, true, t | Symbols in Action Language |
| MATLAB functions and data | matlab, ml | ml Namespace Operator |
| State actions | bind, du, during, en, entry, ex, exit, on | Defining Action Types |
| State activity | in | Checking State Activity |
| Temporal logic | after, at, before, every, sec, temporalCount | Using Temporal Logic in State Actions and Transitions |
![]() | Overview of Stateflow Objects | States | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |