slreq.cmConfigureVersion
Syntax
Description
sets the configured version prev_version
= slreq.cmConfigureVersion(domain
,doc_id
,version
)version
of the linked requirements document
doc_id
of type domain
and returns the previously
configured version prev_version
.
sets the configured version prev_version
= slreq.cmConfigureVersion(domain
,doc_id
,version
,src
)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
Set Configured Version for All Links to IBM DOORS Module Baseline
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
Set Configured Version for Links from Simulink Model to IBM DOORS Module Baseline
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
Output Arguments
Version History
Introduced in R2019b