Skip to Main Content Skip to Search
Product Documentation

systest.requirements.createlink - Create requirements link object

Syntax

reqlinkobj= systest.requirements.createlink(format,location,linktype,linkvalue)
reqlinkobj= systest.requirements.createlink(reqlinkstruct)

Description

reqlinkobj= systest.requirements.createlink(format,location,linktype,linkvalue) ) creates a requirement link object to the linkvalue in the location for a given format.

format,location,linktype,linkvalue must be specified as a string. format and linktype are not case sensitive, but location and linkvalue are case sensitive.

If linkvalue is a 1xN cell array of strings, then 1xN array of requirement link objects reqlinkobj will be created.

reqlinkobj= systest.requirements.createlink(reqlinkstruct) ) creates a requirement link object from the requirement link MATLAB structure returned from the Simulink Verification and Validation toolbox. If reqlinkstruct is a 1xN struct, then a 1xN array of requirement link objects reqlinkobj will be returned.

reqlinkstruct - Requirement links are represented in MATLAB in a structure array with the following format:

Examples

Create a requirement link object to a DOORS object "1" in the module "/demo/MyModule". Note: DOORS must be running.

 reqLinkObj = systest.requirements.createLink
				('DOORS', '/demo/MyModule' ,'DOORS Object','1')

Create a requirement link object from a requirement link structure attached to a Signal Builder block in a model. Note: DOORS must be running.

blockPath = 'mymodel/SignalBuilderBlock/';
reqStruct = rmi('get',blockPath,1);
reqLinkObj = systest.requirements.createLink(reqStruct);

How To

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS