How do I get the default case(switch case) in auto code for if-else logic in Simulink model implementation?
5 ビュー (過去 30 日間)
古いコメントを表示
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).
0 件のコメント
採用された回答
TAB
2018 年 7 月 26 日
You should check below options in Model Configuration Parameters > Code Generation > Code Style
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Deployment, Integration, and Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!