Open Simulink Editor "Requirements Manager" App programmatically
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
Is it possible to open programmatically an app, for example the Requirements Manager, in a Simulink model using a command line command?
I am trying to enter into the Requirements perspective view automatically, and opening the Requirements Manager is one way to do it.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/759646/image.jpeg)
Thank you
4 Kommentare
Alex Howard
am 6 Okt. 2021
Hi Francesco, it sounds like you're trying to open the Requirements Manager app in a Simulink model by using the MATLAB command line.
You can use slreq.openRequirementsManager(model) where model is the name of the Simulink model, specified as a string scalar or character vector. The model must be open. For example, you can open a model called vdp and then open the Requirements Manager app in the model:
open_system("vdp")
slreq.openRequirementsManager("vdp")
You can also close the Requirements Manager app in a Simulink model at the command line. The model must be open. For example:
slreq.closeRequirementsManager("vdp")
Antworten (1)
C B
am 6 Okt. 2021
You can refer this link https://in.mathworks.com/help/slrequirements/ref/rmi.html
slvnvdemo_fuelsys_officereq;
blk_with_req = ['slvnvdemo_fuelsys_officereq/fuel rate controller/'...
'Airflow calculation']
reqts = rmi('get', blk_with_req);
reqts.description = 'Mass airflow estimation';
addpath(fullfile(matlabroot,'toolbox','slrequirements',...
'slrequirementsdemos','fuelsys_req_docs'))
rmi('set', blk_with_req, reqts);
new_req = rmi('createempty');
new_req.doc = 'fuelsys_requirements2.htm';
new_req.description = 'New requirement';
rmi('cat', blk_with_req, new_req);
rmi('report', 'slvnvdemo_fuelsys_officereq');
Siehe auch
Kategorien
Mehr zu Verification, Validation, and Test finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!