Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

db_0125: Scope of internal signals and local auxiliary variables

ID: Title

db_0125: Scope of internal signals and local auxiliary variables

Priority

Strongly recommended

Scope

MAAB

MATLAB Versions

All

Prerequisites

None

Description

Internal signals and local auxiliary variables are "Local data" in Stateflow®:

  • All local data of a Stateflow block must be defined on the chart level or below the Object Hierarchy.

  • No local variables may exist on the machine level (that is, no interaction should occur between local data in different charts).

  • Parameters and constants are allowed at the machine level.

Correct

Incorrect

Rationale

  • Readability

  • Code Generation

Last Changed

V2.0

Model Advisor Check

By Task > Modeling Standards for MAAB > Stateflow > Check Stateflow data objects with local scope

For check details, see Check Stateflow data objects with local scope (Simulink Verification and Validation).

Introduced in R2010a

Was this topic helpful?