Main Content

jc_0790: Action language of Chart block

Since R2020a

Guideline Publication

Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®

Sub ID Recommendations

  • NA-MAAB — No recommendations

  • JMAAB — a

MATLAB Versions



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.


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.


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

Last Changed


Version History

Introduced in R2020a