slreq.getExternalURL
Get navigation URL for link source or destination, requirement, test or Simulink model element
Since R2021a
Syntax
Description
returns a navigation URL to a link source or destination, requirement, test or Simulink® model element specified by navURL
= slreq.getExternalURL(myDesignItem
)myDesignItem
.
Note
The MATLAB® embedded web server must run on HTTP port 31415 to create the navigation
URLs. If your MATLAB session is not configured for this HTTP port number, an
error occurs when you try to create a link. Use rmi
httpLink status
to check the configured port number. If the
httpPort
field of the output structure is 0
, use
rmipref("UnsecureHttpRequests",true)
to enable the embedded HTTP
server. If the httpPort
is a number that is not
31415
, close all instances of
MATLAB and reopen one instance.
[
also returns an external navigation label, navURL
,navLabel
] = slreq.getExternalURL(myDesignItem
)navLabel
.
Examples
Input Arguments
Output Arguments
Tips
You can copy the external navigation URL to your clipboard for a:
Requirements Toolbox requirement, referenced requirement, or justification
Simulink, Stateflow, or System Composer model element
Simulink data dictionary entry
Right-click one of these items in the Requirements Editor or Simulink Editor and select Copy URL to Clipboard, or select Requirements > Copy URL to Clipboard.
Version History
Introduced in R2021a
See Also
slreq.getCurrentObject
| gcb
(Simulink) | gcbh
(Simulink) | sfgco
(Stateflow) | sltest.testmanager.getTestFiles
(Simulink Test)