Main Content

slreq.modeling.find

Find Requirements Table blocks

Description

example

reqTables = slreq.modeling.find(model) returns the Requirements Table blocks in the model or subsystem specified by model.

reqTables = slreq.modeling.find(handle) returns the Requirements Table blocks in the model or subsystem specified by the model or subsystem handle handle.

Examples

collapse all

Find the Requirements Table blocks in a model named myModel.

reqTables = slreq.modeling.find("myModel");

The function returns reqTables as an array of RequirementsTable objects.

Get the handle of the current model.

modelH = get_param(gcs,"Handle");

Find the Requirements Table blocks in the model named myModel.

reqTables = slreq.modeling.find(modelH);

The function returns reqTables as an array of RequirementsTable objects.

Input Arguments

collapse all

Model or subsystem name, specified as a string scalar or character vector.

Data Types: char | string

Model or subsystem handle, specified as a double. To retrieve the handle, you can use the get_param function:

modelH = get_param(gcs,"Handle");

Data Types: double

Output Arguments

collapse all

Requirements Table blocks, returned as an array of RequirementsTable objects.

Version History

Introduced in R2022a