Main Content

Check for prohibited overlapping or intersecting blocks and signal lines

Check ID: mathworks.jmaab_v6.jc_0903

Guideline: jc_0903: Prohibition of overlapping/crossing of blocks and signal line

Description

Checks if blocks, block names, block annotations, annotations, signal lines or signal labels overlap or intersect.

This check applies to the following target components in a Simulink® model.

  • Blocks

  • Block names

  • Block annotations

  • Annotations

  • Signal lines

  • Signal labels

Exception 1: Blocks located completely within the border of an annotation box.

Exception 2: A signal line crossing the border of the annotation box within which its source block is located.

This check requires a Simulink Check™ license.

Check Parameterization

This check contains sub-checks that correspond to 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 JMAAB modeling standards organizations are:

  • JMAAB — a, b1/b2

The input parameter Signal crossing threshold (in %) allows you to set a condition to fail the check if the threshold value is met. The signal crossing threshold is the percent of total signal lines in the model with violations detected by the check.

Results and Recommended Actions

Guideline Sub IDConditionRecommended Action
jc_0903_a: Check for overlapping blocks, annotations, names, or labels.Blocks, block names, block annotations, annotations, or signal labels overlapChange the model so that blocks, block names, block annotations, annotations, and signal labels do not overlap.
jc_0903_b1: Check for signal lines overlapping or intersecting other signal lines or blocks. Signal lines overlap with or intersect other signal lines, blocks, block names, block annotations, annotations, or signal labels.Change the model so that signal lines do not overlap with or intersect other signal lines, blocks, block names, block annotations, annotations, and signal labels.
jc_0903_b2: Check for overlapping signal lines when Line crossing style is set to "Line hop".Signal lines overlap with or intersect other signal lines, blocks, block names, block annotations, annotations, or signal labels when Line crossing style is set to "Line hop".Change the model so that signal lines do not overlap with or intersect other signal lines, blocks, block names, block annotations, annotations, and signal labels when Line crossing style is set to "Line hop".

Capabilities and Limitations

  • Does not check if block names or block annotations intersect or overlap with other model elements.

  • Does not report a violation for a block that overlaps with an annotation. In this case, the check reports a violation only for the annotation.

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

  • Runs on library models.

  • Allows exclusion of blocks.