How to export requirements to reqif with a script
이전 댓글 표시
I wan't write a m-script, that exports requirements to a reqif-File. Is there a function to export the requirements?
댓글 수: 9
Jan
2021년 5월 14일
Please make it as easy as possible to write an answer. You cannot expect, that all readers know, what a "reqif-File" is.
Andreas
2021년 5월 17일
Andreas
2021년 5월 17일
Jan
2021년 5월 17일
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
2021년 5월 17일
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
2021년 5월 17일
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
2021년 5월 17일
답변 (2개)
Lexi Howard
2021년 6월 7일
1 개 추천
Hi Andreas,
There is no public API for exporting requirements to a ReqIF file. You must use the Requirements Editor.
Jan
2021년 5월 18일
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.
카테고리
도움말 센터 및 File Exchange에서 Import and Integrate Requirements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!