jc_0511: Setting the return value from a graphical function

ID: Title

jc_0511: Setting the return value from a graphical function

Priority

Mandatory

Scope

J-MAAB

MATLAB Versions

All

Prerequisites

None

Description

The return value from a graphical function must be set in only one place.

Correct

Return value A is set in one place.

Incorrect

Return value A is set in multiple places.

Rationale

  • Readability

  • Verification and Validation

  • Code Generation

Last Changed

V2.0

Model Advisor Check

By Task > Modeling Standards for MAAB > Stateflow > Check return value assignments in Stateflow graphical functions

For check details, see Check return value assignments in Stateflow graphical functions (Simulink Check).

Introduced in R2010a