Main Content

slreq.cmGetVersion

Get configured version of linked requirements documents

Description

doc_version = slreq.cmGetVersion(domain,docid) returns the configured version value of the version-controlled requirements document docid of document interface type domain. The configured version is the version of the document that opens when you navigate to the linked document from MATLAB®.

example

doc_version = slreq.cmGetVersion(domain,docid,src) returns the configured version value of the version-controlled document that is linked to the Model-Based Design artifact src.

example

Examples

collapse all

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

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

  '1.3a'

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

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

  '2.4c'

Input Arguments

collapse all

Registered document interface type, specified as "linktype_rmi_doors" for an interface to an IBM DOORS module, or a character vector or string scalar that specifies a custom document interface.

Data Types: char | string

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

Data Types: char | string

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

Data Types: char | string

Output Arguments

collapse all

Configured version of the linked requirements document, returned as a character vector. The function returns an empty character vector if the configured version is the current version, or if there is no configured version.

Version History

Introduced in R2019b