Main Content

Check updates to variables used in state transition conditions

Check ID: mathworks.jmaab_v6.jc_0741

Guideline: jc_0741: Timing to update data used in state chart transition conditions

Description

Variables used in state transition conditions must not perform an update by "during" state action type.

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

Check Parameterization

This check contains sub-checks that correspond to 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, b

Results and Recommended Actions

Guideline Sub IDConditionRecommended Action
jc_0741_a1: Variables used in a state transition condition shall not use "during" to perform an update.Variables in the state transition condition performs an update by "during" state action type.Consider changing the variables updated in "during" action
jc_0741_a2: Variables used in a state transition condition shall use "during" to perform an update.Variables in the state transition condition performs an update without "during" state action type.Consider changing the variables used in a state transition condition updated in "during" action.
jc_0741_b: Combined use of data being updated and data not being updated in the same transition conditionVariables used in state transition conditions contains mixed use of data updated and not updated in "during" state action type.Consider changing the variables in the transition condition.

Capabilities and Limitations

  • Runs on library models.

  • Does not verify when there is a loop of junctions.

  • Does not verify when there are multiple transitions originating from a junction.

  • 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 of blocks and charts.