How do I get the default case(switch case) in auto code for if-else logic in Simulink model implementation?

4 vues (au cours des 30 derniers jours)
When I generated the code for my Simulink model which contain if-else logic(States when execution is resumed: Reset for both if and else actions), the code is generated with switch statement without default case. So when I do static analysis(polyspace code prover) it is giving 16.4 violation(default case is mandatory).

Réponse acceptée

TAB
TAB le 26 Juil 2018
You should check below options in Model Configuration Parameters > Code Generation > Code Style

Plus de réponses (0)

Catégories

En savoir plus sur Deployment, Integration, and Supported Hardware dans Help Center et File Exchange

Produits


Version

R2015b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by