How to export requirements to reqif with a script
Afficher commentaires plus anciens
I wan't write a m-script, that exports requirements to a reqif-File. Is there a function to export the requirements?
9 commentaires
Jan
le 14 Mai 2021
Please make it as easy as possible to write an answer. You cannot expect, that all readers know, what a "reqif-File" is.
Andreas
le 17 Mai 2021
Andreas
le 17 Mai 2021
Jan
le 17 Mai 2021
Do you want a user of this forum to write the complete code for you? Or do you know, what you want to solve and a specific Matlab problem blocks the process? I told us, that you want to write some code for the export.
It is the typical work of Matlab professionals to assist others with solving problems, they have never heared of before. If the customer defines the requirements clearly, the programmer implements them in code.
Maybe it helps to solve your poblem, if you ask more specifically. We can assume, that you searched in the internet for "Matlab reqif" already and read the corresponding documentation in Matlab's help sections. So how can we help you?
Andreas
le 17 Mai 2021
Then my questions for clarifications did at leans bump your question to the top of the list of questions.
If you are able to do, what you want, through a GUI, you can use the profiler and the debugger to dig in the code of the callbacks to see, how this can be done programmatically. Although I do not use the reqif export, I'm familiar with methods to analyse code.
Rik
le 17 Mai 2021
Note that most frequent contributors have little experience with Simulink. So if your question is only applicable to Simulink (as a quick search seems to suggest), your chances of getting a solution are not great and the turn-around time might be substantially longer.
Andreas
le 17 Mai 2021
Réponses (2)
Lexi Howard
le 7 Juin 2021
1 vote
Hi Andreas,
There is no public API for exporting requirements to a ReqIF file. You must use the Requirements Editor.
Jan
le 18 Mai 2021
If the searched function is implemented as M-function, you find the correspodning M-files using the profiler:
profile on % type this in the command window
... trigger the button in the GUI
profile report
Now you see a list of called function. Now you can set a break point in a function, which looks, like it does, what you need. Check the values of the input arguments or maybe the way to call it is documented.
As long as you dig in M-functins only, I assume, this is not a "reverse engineering", which would be a conflict with the license agreement.
Catégories
En savoir plus sur Software Development Tools dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!