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

2 visualizaciones (últimos 30 días)
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)

Respuestas (1)

Josh Kahn
Josh Kahn el 14 de Sept. de 2023
Editada: Josh Kahn el 14 de Sept. de 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

Categorías

Más información sobre Verification, Validation, and Test en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by