Can we print the contents of Requirements tagged in Simulink model to a command window? (Details in Description)

2 ビュー (過去 30 日間)
In my project we tag the requirement ID under the description of any block (Subsystem mainly). i.e. as shown below:
There where so many blocks that it became hectic to go and check description of every block. So instead we made one script which prints the content, path and name of the block if and only if there is some content in the description to the command window and also in the excel file.
MY QUESTION STARTS HERE
Now the above thing is no more followed, we now tag the requirement under the Requirements option as shown below:
In anyway is it possible to Print the Requirements tagged under the requirement option in a command window? (Using m-script)

回答 (1 件)

Josh Kahn
Josh Kahn 2023 年 9 月 14 日
編集済み: Josh Kahn 2023 年 9 月 14 日
Hope you got this resolved by now but just in case you haven't, you can load the model's linkset file and interrogate the links (should be an slmx file with the same name as the model or modelname~slx.slmx).
If you are looking for inlinks and outlinks from a particular block or artifacts, you can also use slreq.outLinks(artifact) and slreq.inLinks(artifact):
Regards,
Josh

カテゴリ

Help Center および File ExchangeDependency Analysis についてさらに検索

タグ

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by