Main Content

db_0042: Usage of Inport and Outport blocks

Since R2020a

Guideline Publication

Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®

Sub ID Recommendations

  • NA-MAAB — a, b

  • JMAAB — a, b, c

MATLAB Versions

All

Rule

Sub ID a

The Inport block shall be positioned on the left side of the diagram, but can be moved to prevent the crossing of signals.

Custom Parameter

Not Applicable

Example — Correct

Inport block is positioned on the left side of the diagram.

Example — Incorrect

Inport block is not positioned on the left side of the diagram.

Sub ID b

The Outport block shall be positioned on the right side of the diagram, but can be moved to prevent the crossing of signals.

Custom Parameter

Not Applicable

Example — Correct

Outport block is positioned on the right side of the diagram.

Example — Incorrect

Outport block is not positioned on the right side of the diagram.

Sub ID c

Duplicate Inport blocks shall be prohibited.

Custom Parameter

Not Applicable

Example — Correct

One Inport block is used.

Example — Incorrect

Inport blocks is duplicated.

Rationale

Sub IDs a, b, c:

  • Defined operation rules improve readability.

Verification

Model Advisor check: Check position of Inport and Outport blocks (Simulink Check)

Last Changed

R2020a

Version History

Introduced in R2020a