Main Content

jc_0790: Action language of Chart block

Sub ID Recommendations

  • NA-MAAB — No recommendations

  • JMAAB — a

MATLAB Versions

All

Rule

Sub ID a

Stateflow® Chart (Stateflow) property Action Language shall be set to C.

Custom Parameter

Not Applicable

Example — Correct

The Action Language is set to C.

Example — Incorrect

The Action Language is set to MATLAB.

Rationale

Sub ID a:

  • Using a consistent action language improves readability because there is not a difference in syntax.

  • Easier to maintain consistency between the model and the generated code when using C as the action language as compared to MATLAB.

  • Easier to understand the model for users who are familiar with the C programming language.

Verification

Model Advisor check: Check Stateflow chart action language (Simulink Check)

Last Changed

R2020a

Introduced in R2020a