rmimap.map

Associate externally stored requirements traceability data with model

Syntax

rmimap.map(model,reqts_file)
rmimap.map(model,'undo')
rmimap.map(model,'clear')

Description

rmimap.map(model,reqts_file) associates the requirements traceability data from reqts_file with the Simulink® model model.

rmimap.map(model,'undo') removes from the .slmx file associated with model the requirements traceability data that was most recently saved in the .slmx file.

rmimap.map(model,'clear') removes from the .slmx file associated with model all requirements traceability data.

Input Arguments

model

Name, handle, or full path for a Simulink model

reqts_file

Full path to the .slmx file that contains requirements traceability data for the model

Alternatives

To load a file that contains requirements traceability data for a model:

  1. Open the model.

  2. Open the Requirements Editor. In the Apps tab, click Requirements Manager. In the Requirements tab, click 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 *.slmx file).

  3. Browse to the .slmx file that contains the requirements links.

  4. Click OK.

Examples

collapse all

This example shows how to associate an external requirements traceability data file with a Simulink model

Open the model. Define the path to the requirement file.

open_system('slvnvdemo_powerwindowController');
reqFile = fullfile('slvnvdemo_powerwindowRequirements.slmx');

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.

rmimap.map('slvnvdemo_powerwindowController', reqFile);
Mapping .../slrequirements-ex91255337/slvnvdemo_powerwindowController.slx to slvnvdemo_powerwindowRequirements.slmx
rmi('highlightModel', 'slvnvdemo_powerwindowController');

Cleanup

Clean up commands. Clear the open requirement sets and link sets without saving changes and close the open models without saving changes.

slreq.clear;
bdclose all;
Introduced in R2015a