Main Content

slreq.cmConfigureVersion

Set version of linked requirements documents

Since R2019b

Description

example

prev_version = slreq.cmConfigureVersion(domain,doc_id,version) sets the configured version version of the linked requirements document doc_id of type domain and returns the previously configured version prev_version.

example

prev_version = slreq.cmConfigureVersion(domain,doc_id,version,src) sets the configured version version of the linked requirements document doc_id of type domain for all links from the Model-Based Design artifact src and returns the previously configured version prev_version.

Examples

collapse all

Use baseline version 2.2b for all links to the IBM® DOORS® module 546223g1.

% Set configured version to 2.1b
versionA = slreq.cmConfigureVersion('linktype_rmi_doors','546223g1','2.1b')

versionA = 

  0×0 empty char array 

% versionA is empty because there is no previously configured version

versionB = slreq.cmConfigureVersion('linktype_rmi_doors','546223g1','2.2b')

versionB =

  '2.1b'

% 2.1b is the previously set configured version

Use baseline version 2.3b for links from the Simulink® model myModel.slx to the IBM DOORS module 00006a12.

% Set configured version to 2.1b
versionA = slreq.cmConfigureVersion('linktype_rmi_doors', '00006a12', '2.1b', 'myModel.slx')

versionA = 

  0×0 empty char array 

% versionA is empty because there is no previously configured version

% Set the configured version to 2.3b

versionB = slreq.cmConfigureVersion('linktype_rmi_doors', '00006a12', '2.3b', 'myModel.slx')

versionB =

  '2.1b'

% 2.1b is the previously set configured version

Input Arguments

collapse all

Registered document type name, specified as a character vector or a string. As of R2019b, link target version configuration is supported only for IBM DOORS with the value 'linktype_rmi_doors'.

Unique identifier for a version-controlled requirements document, specified as a character vector or a string.

Target version of the requirements document, specified as a character vector or a string.

The file name of the Model-Based Design source artifact, specified as a character vector or a string.

Output Arguments

collapse all

Previously configured version of the linked requirements document, returned as a character vector.

Version History

Introduced in R2019b