Main Content

Guidelines for NamingStateflowObjects

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金宝app®Coder™software. You can set theMaximum identifier lengthparameter. 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.

Note

Do not use the file namessf.slxfor Simulink models orsf.sfxfor standalone Stateflow charts in MATLAB®. Using these file names can shadow Stateflow program files and result in unpredictable behavior.

Reserved Keywords

Related Topics