jc_0796: Length restriction for Stateflow data names
Guideline Publication
Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®
Sub ID Recommendations
NA-MAAB — a
JMAAB — a
MATLAB Versions
All
Rule
Sub ID a
The number of characters in the Stateflow data {name} shall be less than or equal to configured limit. Default value is 63 characters.
Custom Parameter
Stateflow data name character limit
Note
The MATLAB limit for the number of characters you can use in Stateflow data {name} is 2048.
Rationale
Sub ID a:
Readability is impaired.
Deviation from the rule can result in unintended code behavior
Verification
Model Advisor check: Check length of Stateflow data name (Simulink Check)
Last Changed
R2025a
See Also
Add Stateflow Data (Stateflow)
Set Data Properties (Stateflow)
Version History
Introduced in R2020a