Main Content

Requirements Traceability

Link requirements to designs, code, and tests, specify relationships, add markup, review traceability to models and code, check consistency

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 requirement. Create custom requirement and link types to extend the default linking capabilities.

Use the Requirements Editor to create and view links, and use the Requirements Perspective to view requirements in the model context.

Apps

Requirements EditorCreate and edit requirements

Classes

slreq.LinkSet Work with link sets
slreq.Link Work with link objects

Methods

setDestination Set requirement link destination
setSource Set requirement link source

Functions

slreq.cmConfigureVersionSet version of linked requirements documents
slreq.cmGetVersionGet configured version of linked requirements documents
slreq.clearClear requirements and links from memory
slreq.closeRequirementsManagerClose Requirements Manager app in model
slreq.createLinkCreate traceable links
slreq.findFind requirement, reference, and link set artifacts
slreq.generateTraceabilityDiagramCreate a traceability diagram
slreq.generateTraceabilityMatrixCreate traceability matrix
slreq.getExternalURLGet navigation URL for link source or destination, requirement, test or Simulink model element
slreq.getTraceabilityMatrixOptionsCreate options structure for traceability matrix
slreq.inLinksGet incoming links for requirement or other linkable item
slreq.loadLoad requirement set or link set
slreq.openRequirementsManagerOpen Requirements Manager app in model
slreq.outLinksGet outgoing links for a block or other linkable item
slreq.refreshCustomizationsRegister Requirements Toolbox customizations
slreq.showNavigate to link source or destination
slreq.structToObjConvert link source or destination information from structure to model object type

Topics

Create Links

Customize Links

Visualize, Manage, and Troubleshoot Links

Link with Third-Party Applications