Can we print the contents of Requirements tagged in Simulink model to a command window? (Details in Description)
2 views (last 30 days)
Show older comments
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)
0 Comments
Answers (1)
Josh Kahn
on 14 Sep 2023
Edited: Josh Kahn
on 14 Sep 2023
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
0 Comments
See Also
Categories
Find more on Dependency Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!