Main Content

slreq.cmGetVersion

Get configured version of linked requirements documents

Since R2019b

Description

example

doc_version = slreq.cmGetVersion(domain,doc_id) queries the configured version doc_version of the linked requirements document doc_id of type domain.

example

doc_version = slreq.cmGetVersion(domain,doc_id,src) queries the configured version doc_version of the linked requirements document doc_id of type domain that is linked to the Model-Based Design artifact src.

Examples

collapse all

Get the configured baseline version for the IBM® DOORS® module 1213424d.

configVer = slreq.cmGetVersion('linktype_rmi_doors','1213424d')

configVer =

  '1.3a'

Get the configured baseline version for links from the Simulink® model myModel.slx for the IBM DOORS module 1234a45a.

configVer = slreq.cmGetVersion('linktype_rmi_doors', '1234a45a', 'myModel.slx')

configVer =

  '2.4c'

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.

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

Output Arguments

collapse all

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

Version History

Introduced in R2019b