Main Content

slreq.load

Load requirement set or link set

Description

example

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

example

myReqSet = slreq.load(reqSetFile,forceResolve) loads a requirement set and fixes the outdated profile when forceResolve is true. For more information, see Customize Requirements and Links by Using Stereotypes.

example

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

example

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

Load a requirement set and return the associated slreq.ReqSet object.

rs = slreq.load("basicReqSet");

Load a requirement set that has an outdated profile.

rs = slreq.load("myAddRequirementsOutdated",true);

Load a link set that contains direct links between requirements in Microsoft® Word and model elements in Simulink®.

myLinkSet = slreq.load("slvnvdemo_fuelsys_officereq.slmx");

Close the link set.

slreq.clear

Load the Simulink model®, requirement set, and link set associated with a Requirements Table block in a Simulink® model.

[myLinkSet,myReqSet] = slreq.load("reqTableDurationModel1.slx");

Input Arguments

collapse all

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

Example: "myReqSet.slreqx"

Link set file to load, specified as a string scalar or character vector.

Example: "myLinkSet.slmx"

Option to fix outdated profile when loading requirement set, specified as 1 (true) or 0 (false) of data type logical.

Example: "myLinkSet.slmx"

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

Loaded requirement set, returned as an slreq.ReqSet object.

Loaded link set, returned as an slreq.LinkSet object.

Version History

Introduced in R2018a