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

2 vues (au cours des 30 derniers jours)
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)

Réponses (1)

Josh Kahn
Josh Kahn le 14 Sep 2023
Modifié(e) : Josh Kahn le 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

Catégories

En savoir plus sur Dependency Analysis dans Help Center et File Exchange

Produits


Version

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by