필터 지우기
필터 지우기

Can't navigate to code in Simulink Coder

조회 수: 8 (최근 30일)
Marco Montanaro
Marco Montanaro 2021년 3월 6일
댓글: Samuel Gimmel 2021년 6월 1일
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?

답변 (1개)

Chidvi Modala
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
  1. 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.
  2. In the Apps gallery, click Simulink Coder. The C Code tab appears.
For more information on Updated Simulink toolstrip, you may refer to Simulink Toolstrip section under Simulink Editor in this release notes
  댓글 수: 1
Samuel Gimmel
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by