MATLAB Help Center
Get outgoing links for a block or other linkable item
ks = slreq.outLinks(node)
ks = slreq.outLinks(node), returns outgoing links ks, a Link or Link array, from node, a block or other linkable item.
ks
node
Link
example
collapse all
This example uses:
This example shows how to determine the incoming link for a requirement and outgoing link for a model object.
Load the reqs_validation_property_proving_original_model model and the original_thrust_reverser_requirements requirement set.
reqs_validation_property_proving_original_model
original_thrust_reverser_requirements
load_system("reqs_validation_property_proving_original_model"); rqset = slreq.load("original_thrust_reverser_requirements.slreqx");
Get a handle to requirement with the index 11 in the requirement set.
11
req = slreq.find(Type="Requirement",Index=11);
Get the incoming links for the requirement.
inLinks = slreq.inLinks(req);
Get the link source for the incoming link.
lkSrc = source(inLinks);
Convert the link source from a structure to a model object.
mo = slreq.structToObj(lkSrc);
Get the outgoing links for the model object.
outLinks = slreq.outLinks(mo);
A linkable item that may have outgoing requirements links. Common examples include a block, function, or TestCase (Simulink Test).
TestCase
Example: Simulink.Gain
Simulink.Gain
Example: TestCase with properties
TestCase with properties
Data Types: struct
struct
A Link or Link array outgoing from the linkable item.
Introduced in R2017b
slreq.inLinks | slreq.structToObj
slreq.inLinks
slreq.structToObj
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office