Main Content

slreq.open

Open requirement set

Description

example

myReqSet = slreq.open(ReqSetFilePath) loads the requirement set at ReqSetFilePath into memory. If the requirement set is already loaded into memory, the Requirements Editor opens. If the requirement set is already loaded and the Requirements Editor is open, the specified requirement set is selected in the Requirements Editor.

myReqSet = slreq.open(ReqSetName) loads the requirement set named ReqSetName.

myReqSet = slreq.open(model) loads the specified Simulink® model specified by model and loads the requirement sets in the Requirements Editor. The model must contain at least one Requirements Table block.

Examples

collapse all

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

rs = slreq.open("basicReqSet");

Input Arguments

collapse all

The full file path of the requirement set to be loaded, specified as a string scalar or character vector.

The name of the requirement set to be loaded, 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

Handle to the requirement set you open, returned as an slreq.ReqSet object.

Version History

Introduced in R2018a