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 CenterFile Exchange에서 Dependency Analysis에 대해 자세히 알아보기

태그

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by