Main Content

slreq.load

Load requirement set or link set

Description

example

myReqSet = slreq.load(reqSetArtifact) loads a requirement set myReqSet into memory.

myLinkSet = slreq.load(linkSetArtifact) loads a link set myLinkSet into memory.

myLinkSet = slreq.load(model) loads a Simulink® model that contains at least one Requirements Table block, specified by model, and loads the associated link set into memory.

[myLinkSet,myReqSet] = slreq.load(model) loads a Simulink model that contains at least one Requirements Table block and loads the associated requirement set and link set into memory.

Examples

collapse all

This example shows how to load a requirement set and return the associated slreq.ReqSet object.

rs = slreq.load("basicReqSet");

Input Arguments

collapse all

The requirement set to load, specified as a string scalar or character vector.

The link set to load, specified as a string scalar or character vector.

The Simulink model to load, specified as a string scalar or character vector. The model must contain at least one Requirements Table block. Each block is associated with a requirement set. See Configure Properties of Formal Requirements. You must include the .slx extension.

Output Arguments

collapse all

The requirement set that was loaded, returned as an slreq.ReqSet object.

The link set that was loaded, returned as an slreq.LinkSet object.

Version History

Introduced in R2018a