Can't navigate to code in Simulink Coder

12 ビュー (過去 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 Center および File ExchangeSimulink Coder についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by