na_0009: Entry versus propagation of signal labels

ID: Title

na_0009: Entry versus propagation of signal labels

Priority

Strongly recommended

Scope

MAAB

MATLAB Versions

All

Description

If a label is present on a signal, the following rules define whether that label is created there (entered directly on the signal) or propagated from its true source (inherited from elsewhere in the model by using the less than (<) character).

  • Any displayed signal label must be entered for signals that:

    • Originate from an Inport at the Root (top) Level of a model

    • Originate from a basic block that performs a transformative operation (For the purpose of interpreting this rule only, the Bus Creator block, Mux block, and Selector block are considered to be included among the blocks that perform transformative operations.)

  • Any displayed signal label must be propagated for signals that:

    • Originate from an Inport block in a nested subsystem

      Exception: If the nested subsystem is a library subsystem, a label may be entered on the signal coming from the Inport to accommodate reuse of the library block.

    • Originate from a basic block that performs a nontransformative operation

    • Originate from a Subsystem or Stateflow® chart block

      Exception: If the connection originates from the output of a library subsystem block instance, a new label may be entered on the signal to accommodate reuse of the library block.

Rationale

  • Readability

  • Verification and Validation

  • Workflow

  • Verification and Validation

  • Code Generation

Last Changed

V2.0

Model Advisor Check

By Task > Modeling Standards for MAAB > Simulink > Check for propagated signal labels

For check details, see Check for propagated signal labels (Simulink Check).

Introduced in R2010a