Main Content

Track and Visualize Links

Measure requirements implementation and verification and identify changes

Track and visualize links by using implementation status, traceability matrices, and traceability diagrams. Trace requirements to generated code created from models and MATLAB® code.

Apps

Requirements EditorCreate and edit requirements
Requirements ManagerManage requirements and links in model
Profile EditorCreate and manage profiles with stereotypes and properties

Functions

expand all

slreq.findFind requirement, reference, and link set artifacts
slreq.inLinksGet incoming links for requirement or other linkable item
slreq.outLinksGet outgoing links for a block or other linkable item
slreq.getDependentLinkSetsRetrieve link sets with incoming links to requirement set (Since R2023a)
slreq.getExternalURLGet navigation URL for link source or destination, requirement, test or Simulink model element (Since R2021a)
slreq.getIncomingLinkTypeLabelRetrieve incoming link type label (Since R2023a)
slreq.getOutgoingLinkTypeLabelRetrieve outgoing link type label (Since R2023a)
slreq.getTextRangeGet line ranges (Since R2022b)
slreq.structToObjConvert link source or destination information from structure to model object type
slreq.refreshLinkDependenciesRefresh requirement link dependencies
slreq.generateTraceabilityDiagramCreate a traceability diagram (Since R2021b)
slreq.generateTraceabilityMatrixCreate traceability matrix (Since R2021a)
slreq.getTraceabilityMatrixOptionsCreate options structure for traceability matrix (Since R2021a)
slreq.showNavigate to link source or destination (Since R2020a)
slreq.loadLoad requirement set, link set, or Requirements Table block
slreq.clearClear requirements and links from memory
slreq.mapGet or set path to link set file

Classes

expand all

slreq.LinkSet Work with link sets
slreq.LinkTraceable link
slreq.ReqSet Work with requirement sets
slreq.Reference Work with external requirement proxy objects
slreq.JustificationRequirement justifications

Methods

expand all

getRegisteredReqSetsGet requirement sets registered in link set
updateRegisteredReqSetsUpdate requirement sets registered to link set
sources Get link sources
save Save link set
destination Get link destination
source Get link source
getDestinationOpenCommand Retrieve command that opens link destination
getSourceOpenCommand Retrieve command that opens link source
getDestinationURL Retrieve URL that opens link destination
getSourceURL Retrieve URL that opens link source
removeDelete links
getImplementationStatus Query requirement set implementation status summary
updateImplementationStatusUpdate requirement set implementation status summary
inLinksGet incoming links for requirements
outLinksGet outgoing links for requirements
getImplementationStatus Query requirement implementation status summary
isJustifiedForCheck if requirement is justified
justifyImplementation Justify requirements for implementation
inLinksGet incoming links for referenced requirements
outLinksGet outgoing links for referenced requirements
getImplementationStatus Query referenced requirement implementation status summary
isJustifiedForCheck if referenced requirement is justified
justifyImplementation Justify referenced requirements for implementation
outLinksGet outgoing links for justifications

Objects

slreq.TextRangeLine range (Since R2022b)
slreq.matrix.ConfigurationTraceability matrix configuration (Since R2024a)
slreq.matrix.FilterFilter for traceability matrix (Since R2024a)

Object Functions

expand all

deleteLinksDelete links for line ranges
getLineRangeGet line numbers for line range
getLinksGet links for line range
getTextGet contents of line range
removeDelete unused line ranges
setLineRangeSet line numbers for line range
showOpen and highlight line range in MATLAB Editor
addFilterToCellAdd cell filter to traceability matrix configuration
addFilterToHighlightAdd highlighting to traceability matrix configuration
addFilterToLeftAdd filter to left artifacts in traceability matrix configuration
addFilterToMatrixAdd matrix settings filter to traceability matrix configuration
addFilterToTopAdd filter to top artifacts in traceability matrix configuration
exportToScriptExport traceability matrix configuration to script

Topics

Track Requirement Links

Track Changes to Requirements and Linked Items

Visualize Links

Trace Requirements to Generated Code

Featured Examples