Documentation

na_0011: Scope of Goto and From blocks

ID: Title

na_0011: Scope of Goto and From blocks

Priority

Strongly recommended

Scope

MAAB

MATLAB Versions

All

Prerequisites

None

Description

For signal flows, the following rules apply:

  • From and Goto blocks must use local scope.

    Note:   Control flow signals may use global scope.

Control flow signals are output from:

  • Function-call generators

  • If and Case blocks

  • Function call outputs from MATLAB® and Stateflow® blocks

Control flow signals are identified as dashed lines in the model after updating a Simulink® model.

Rationale

  • Readability

  • Verification and Validation

  • Workflow

  • Code Generation

  • Simulation

Last Changed

V2.2

Model Advisor Check

By Task > Modeling Standards for MAAB > Simulink > Check for proper scope of From and Goto blocks

For check details, see Check scope of From and Goto blocks.

Was this topic helpful?