MATLAB Answers


How to show requirements in generated code for traceability?

Rik Bakker さんによって質問されました 2018 年 11 月 6 日
最新アクティビティ Rik Bakker さんによって コメントされました 2018 年 11 月 13 日
I have a question about simulink Requirements.
How can i show the imported requirements (from excel) in the autosar code when this code is generated?
For the traceability of the requirements, the requirements should also be found in the generateded code for autosar.
Can someone help me?
Kind regards, Rik

  0 件のコメント

サインイン to comment.

2 件の回答

Mark McBroom
回答者: Mark McBroom
2018 年 11 月 10 日

Alternately, you can use Simulink Requirements to establish a link between blocks in the Simulink model and cells in the Excel Spreadsheet. If you then enable the option "Requirements in block comments" on the "Comments" dialog for Code Generation configuration, the requirement from Excel will be inserted as a comment in the generated code for the block to which the cell in Excel was linked.

  1 件のコメント

Rik Bakker 2018 年 11 月 13 日
Thank you! Thats where i was looking for

サインイン to comment.

回答者: Arunkumar M 2018 年 11 月 10 日

You can use DESCRIPTION property of each block or element (right click -> Properties) What ever you type in Description field will be displayed as Comments in generated C code.
Note: In some blocks, Description property may be available in Documentation tab.

  0 件のコメント

サインイン to comment.

Translated by