Create requirement links to establish traceability to model elements, test cases, test harnesses, MATLAB® code lines, data dictionaries, Stateflow® elements, System Composer™ architecture models, and other requirements. Specify the link type to convey the nature of the relationship, such as a model element that implements a functional requirement or a test harness that verifies a test specification. Create custom requirement and link types to extend the default linking capabilities.
Use the Requirements Perspective View to view requirement details of design elements on the Simulink® Editor.
slreq.LinkSet | Work with link sets |
slreq.Link | Work with link objects |
setDestination | Set requirement link destination |
setSource | Set requirement link source |
slreq.clear | Clear requirements and links from memory |
slreq.createLink | Create traceable links |
slreq.find | Find requirement, reference, and link set artifacts |
slreq.inLinks | Get incoming links for requirement or other linkable item |
slreq.outLinks | Get outgoing links for a block or other linkable item |
slreq.show | Navigate to link source or destination |
slreq.structToObj | Convert link source or destination information from structure to model object type |
slreq.load | Load requirements/link set |
slreq.cmConfigureVersion | Set version of linked requirements documents |
slreq.cmGetVersion | Get configured version of linked requirements documents |
Associate requirements with your model using the Simulink canvas.
Link to Test Cases from Requirements
Associate test cases with requirements.
Specify how requirements are related to Simulink blocks, Stateflow objects, generated code, and to each other.
Track Requirement Links with a Traceability Matrix
Use the Traceability Matrix to track and manage requirement links and change issues.
Define Custom Requirement and Link Types
Create and define custom requirement and link types.
Customize Links with Custom Attributes
Track more information about links with custom attributes.
Manage Navigation Backlinks in External Requirements Documents
Insert hyperlinks to navigate from requirements documents to model elements in Simulink.
Requirements Traceability for MATLAB Code Lines
Create, manage, and navigate traceability links between lines in MATLAB code files and requirements information in external documents.
Requirements Consistency Checks
Check for missing or unresolved links.