Guidelines for Naming Stateflow Objects - MATLAB & Simulink (original) (raw)
You can name Stateflow® objects with a combination of alphanumeric and underscore characters.
- Names cannot begin with a numeric character or contain embedded spaces.
- By default, names have a maximum length of 31 characters. To change the maximum length, set the Maximum identifier length parameter. The parameter accepts values between 31 and 2048.
- Avoid using reserved keywords to name Stateflow objects. These keywords are part of the action language syntax.
Note
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.