Main Content

Check placement of Label String in Transitions

Check ID: mathworks.jmaab_v6.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 MAB 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 — No recommendations

  • JMAAB — a1/a2/a3

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.

jc_0770_a3: Transition labels should be placed as follows:

  • Transition labels including transition conditions must be placed near the sources of transition lines

  • Transition labels without transition conditions must be placed near the destinations of transition lines

One or more following statements are true:

  • Transition labels including transition conditions are not placed near the sources of transition lines.

  • Transition labels without transition conditions are not placed near the destinations of transition lines.

Make sure that:

  • Transition labels including transition conditions are placed near the sources of transition lines.

  • Transition labels without transition conditions are placed near the destinations of transition lines.

Capabilities and Limitations

  • Sub ID a3 does not apply to comment-only transition labels.

  • 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.