Main Content

Check definition of Stateflow data

Check ID: mathworks.jmaab.db_0125

Guideline: db_0125: Stateflow® local data

Description

Identifies the Scope value set on Stateflow data defined at machine level.

This check requires a Simulink® Check™ and Stateflow licenses.

Check Parameterization

This check contains sub-checks that correspond to sub IDs specified in the MAB and JMAAB modeling guidelines. You can use the Model Advisor Configuration Editor to specify which sub IDs (one or multiple) to execute.

For reference, the MAB guideline sub ID(s) that are recommended for use by the NA-MAAB and JMAAB modeling standards organizations are:

  • NA-MAAB — a, b, c, d

  • JMAAB — a, b, c, d

Results and Recommended Actions

Guideline Sub IDConditionRecommended Action
db_0125_a: Check for Stateflow data with Scope set to Local at machine levelStateflow data with Local Scope defined at machine levelDo not define data with Local Scope at machine level.
db_0125_b: Check for Stateflow data with Scope set to Constant at machine levelStateflow data with Constant Scope defined machine levelDo not define data with Constant Scope at machine level.
db_0125_c: Check for Stateflow data with Scope set to Parameter at machine levelStateflow data with Parameter Scope defined at machine levelDo not define data with Parameter Scope at machine level.
db_0125_d: Check for duplicate Stateflow Data names with Scope set to Local on a Stateflow block hierarchyStateflow data defined in a chart have multiple definition on the same Stateflow block hierarchyUse unique Stateflow data names in the hierarchy.

Capabilities and Limitations

  • Runs on library models.

  • Analyzes content of library linked blocks.

  • Analyzes content in masked subsystems. By default, the input parameter Look under masks is set to graphical.

  • Analyzes content of library-linked blocks. By default, the input parameter Follow links is set to on.

  • Allows exclusions.