Associate externally stored requirements traceability data with model
rmidata.map(model,'undo') removes from the .req file associated with model the requirements traceability data that was most recently saved in the .req file.
rmidata.map(model,'clear') removes from the .req file associated with model all requirements traceability data.
Name, handle, or full path for a Simulink model
Full path to the .req file that contains requirements traceability data for the model
To load a file that contains requirements traceability data for a model:
Open the model.
Select Analysis > Requirements > Load Links.
Note: The Load Links menu item appears only when your model is configured to store requirements data externally. To specify external storage of requirements data for your model, in the Requirements Settings dialog box under Storage > Default storage location for requirements links data, select Store externally (in a separate *.req file).
Browse to the .req file that contains the requirements links.
Associate an external requirements traceability data file with a Simulink model. After associating the information with the model, view the objects with linked requirements by highlighting the model.
open_system('slvnvdemo_powerwindowController'); reqFile = fullfile(matlabroot, 'toolbox', 'slvnv', ... 'rmidemos', 'powerwin_reqs', ... 'slvnvdemo_powerwindowRequirements.req'); rmidata.map('slvnvdemo_powerwindowController', reqFile); rmi('highlightModel', 'slvnvdemo_powerwindowController');
To clear the requirements you just associated with that model, run this rmidata.map command: