How do I get the default case(switch case) in auto code for if-else logic in Simulink model implementation?
조회 수: 3 (최근 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!