User`s guide

2 Links Between Models and Requirements
2-20
Link from External Applications
You can navigate to Simulink objects or MATLAB code with requirements using the
internal MATLAB HTTP server.
To get the URL for an object in your model, right-click the object and select
Requirements Traceability > Copy URL to Clipboard. Note that if your model
stores requirements traceability data internally, when you select Requirements
Traceability > Copy URL to Clipboard, the Requirements Management Interface
(RMI) creates a unique identifier in the model file. To enable navigation with the URL
that you copied, resave your model. To use URLs that do not require changes to your
model, configure your model for external storage of requirements traceability data. For
more information, see “Move Internally Stored Requirements Links to External Storage”.
To get the URL for a line or lines of MATLAB code, in the MATLAB Editor, select
the region of code you want to link to and right-click. From the context menu, select
Requirements Traceability > Copy Link to Clipboard.
You can then paste the URL into an external application and use it to navigate back to
the corresponding object in your model.
To enable navigation with these links, the internal MATLAB HTTP server must be
activated on your local host. Selecting Requirements Traceability > Copy URL
to Clipboard activates the internal HTTP server. You can also enter the command
rmi('httpLink') at the MATLAB command prompt to activate the internal HTTP
server.