- In the Modeling tab of the model toolstrip, click Model Settings. The Configuration Parameters dialog opens. Navigate to the Code Generation tab, select the Generate code only parameter, and click Apply.
- In the Apps gallery, click Simulink Coder. The C Code tab appears.
Can't navigate to code in Simulink Coder
조회 수: 9 (최근 30일)
이전 댓글 표시
Good day to you,
I've been following a tutorial for the Requirements and Simulink Coder perspectives ( https://it.mathworks.com/videos/verification-validation-and-testing-in-simulink-1550691741461.html?elqsid=1595582526479&potential_use=Education ) but I seem to be unable to follow it to the letter. I am using Matlab 2020b and whenever I click on the Generate and Build Model from the Simulink Coder perspective, the System returns an incomplete report compared to the one in the video, missing Static Code Metrics Report and several other options. Additionally, though the code seems to have been created by the Coder, I can't seem to locate either a "Code" tab from the Coder perspective (which should be next to Properties), nor can I find the "Navigate To Code" option from the Requirements perspective. Am I missing some addons? Or is it an issue with newer versions of Matlab?
댓글 수: 0
답변 (1개)
Chidvi Modala
2021년 3월 8일
The tutorial refers to earlier MATLAB versions. From MATLAB R2019b, the Simulink toolstrip has replaced the main menu bar as the main menu system for simulink model based design. The Statics code metrics report is generated when you select Generate Traceability Report in the Configuration Parameters dialog box. To enable C Code tab, you can perform the following operations
For more information on Updated Simulink toolstrip, you may refer to Simulink Toolstrip section under Simulink Editor in this release notes
댓글 수: 1
Samuel Gimmel
2021년 6월 1일
Thanks for your answer.
I applied the Generate cod only parameter, but still got no C Code section. Is there an other solution?
Kind Regards
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!