Main Content

Check placement of Label String in Transitions

Check ID: mathworks.jmaab.jc_0770

Guideline: jc_0770: Position of transition label

Description

Checks the placement of Stateflow® transition labels.

The Stateflow signal label must always be at the origin of the signal or at the midpoint of the signal transition line.

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

Check Parameterization

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

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

  • NA-MAAB — No recommendations

  • JMAAB — a1/a2

Note

Sub-check jc_0770_a1 is selected by default.

Results and Recommended Actions

Guideline Sub IDConditionRecommended Action
jc_0770_a1: Transition labels should be placed near the point of origin of the transitionOne or more Stateflow transitions do not have label string placed near the origin of the transition.Make sure to place the Stateflow labels near the point of origin of the transition.
jc_0770_a2: Transition labels should be placed near center of the transitionOne or more Stateflow transitions do not have label string placed near the center of the transition.Make sure to place the Stateflow labels near the mid-point (center) of the transition.

Capabilities and Limitations

  • Runs on library models.

  • Allows exclusions of blocks and charts.

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

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