Main Content

db_0123: Stateflow® port names

Since R2020a

Guideline Publication

Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow

Sub ID Recommendations

  • NA-MAAB — a

  • JMAAB — Not supported

MATLAB Versions

All

Rule

Sub ID a

The name of a Stateflow input/output shall be the same as the corresponding signal.

Exception

Reusable Stateflow blocks can have different port names.

Custom Parameter

Not Applicable

Rationale

Sub ID a:

  • Improves readability.

  • Code generation may not be possible.

Verification

Model Advisor check: Check for names of Stateflow ports and associated signals (Simulink Check)

Last Changed

R2020a

See Also

Version History

Introduced in R2020a