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

3 ビュー (過去 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 Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by