Tips to convert a subsystem into Requirement Table block
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Shubham
am 30 Okt. 2023
Bearbeitet: Shubham
am 7 Nov. 2023
Task: I am trying to convert following subsystem block into requirement block, so that I can further analyze my model function using requirement analysis.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1524611/image.png)
Actions taken: I have tried to make the requirement table as follows:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1524616/image.png)
Here, value is a local data, Input1 and Input2 are 2 inputs and Output1 is the Output.
Issue: I am unable to simulate the requirement table if I convert the subsystem into a requirement table. The error message is "Local data 'value' is not supported as an input for 'prev' or 'duration' in requirement cells". Can you please suggest me if there is any other way I can convert it into requirement table?
0 Kommentare
Akzeptierte Antwort
Josh Kahn
am 6 Nov. 2023
Bearbeitet: Josh Kahn
am 6 Nov. 2023
Local data is not stored between timesteps so there is no prev(value). If you want to use a variable that persists, I recommend switching it to Parameter in which case you can define it in the MATLAB workspace.
Ideally, value would be input data in which case you can feed the same source into your subsystem and your requirements table block and evaluate the expected output.
For more information, see Define Data in Requirements Table Blocks:
Hope this helps,
Josh
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Formalize Requirements in Simulink Models finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!