slreq.cmGetVersion

Get configured version of linked requirements documents

Description

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

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

Query Configured Version for IBM Rational DOORS Module

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

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

configVer =

  '1.3a'

Query Configured Version for Links from a Simulink Model to IBM Rational DOORS Module

Get the configured baseline version for links from the Simulink® model myModel.slx for the IBM Rational 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 Rational 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.

Introduced in R2019b