How to modify Requirements Settings with script or *.rpt?

조회 수: 2 (최근 30일)
Tomasz
Tomasz 2024년 11월 29일
편집: Alex Howard 2024년 12월 2일
I'm trying to generate a requirment report from simulink in Matlab 2020b I have Requirment Tollbox and Report Generation Toolbox. I am trying to do it automatically with matlab -nodisplay mode under Linux.
In Simulink APPS tab -> Requirements Manger -> REQUIREMENTS tab -> Pointing arrow below Share button -> Report Options a window opens with option that I am interested: "Report objects with no requirements" and if possible other options as well.
I was also trying to use modified requirments.rpt file, but without any luck. I don't know how to set the option. I run the report generation using this command
report("myreport.rpt",myComponent,"-fpdf","-oMyPath_report.pdf")
I found something like this: RptgenRMI.NoReqBlockLoop and RptgenRMI.NoReqSystemLoop, but I have no idea how to use it or if it is even used for the thing I want.
In conclusiton I want to be able to modify Requirment Settings with a script, not by clicking in the GUI. Or to override it with .rpt if possible.
Thanks

채택된 답변

Alex Howard
Alex Howard 2024년 12월 2일
편집: Alex Howard 2024년 12월 2일
Hi Tomasz,
It sounds like you're trying to programmatically set some of the Requirements Toolbox report generation settings. You can do that by using the rmipref function. The ReportNoLinkItems name-value argument corresponds to the setting that you pointed to in your screenshot. There are other name-value arguments that start with Report that you might find useful as well.
Thanks,
Alex
  댓글 수: 1
Tomasz
Tomasz 2024년 12월 2일
This works exaclty as I wanted it to work. Thank you very much!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by