jc_0790: Action language of Chart block
Guideline Publication
Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®
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.
Not Applicable
The Action Language is set to
                    C.

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
See Also
- Modify the Action Language for a Chart (Stateflow) 
- Differences Between MATLAB and C as Action Language Syntax (Stateflow) 
Version History
Introduced in R2020a