Main Content

slreq.show

Navigate to link source or destination

Since R2020a

Description

example

slreq.show(tgt) navigates to tgt, a link source or destination. The source or destination object opens in the corresponding interface, such as a block in a model, or test in the Test Manager.

Examples

collapse all

This example shows how to navigate to a link source.

Load Requirement Set and Links

rq = slreq.load('original_thrust_reverser_requirements.slreqx');
lk = slreq.load('reqs_validation_property_proving_original_model.slmx');

Navigate to a Link Source

sl = getLinks(lk);
sl2 = sl(2);
slreq.show(source(sl2))

Cleanup

Cleanup commands. Clears open requirement sets without saving changes, and closes open models without saving changes.

slreq.clear;
bdclose all

Input Arguments

collapse all

Link source or destination, as may be returned by source or destination for a Link.

Example: struct with fields

Data Types: struct

Version History

Introduced in R2020a