How to show requirements in generated code for traceability?
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello,
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
채택된 답변
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개)
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/194648/image.png)
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!