You can import referenced requirements from external requirements source documents, then update them when changes are made to the source document. To import referenced requirements, open the Requirements Editor, select File > Import, choose the source document and check the option to Allow updates from external source. When you import requirements as referenced requirements from external requirement documents, they retain a reference to the source document. Check if you have an updated version of the source document by refreshing any import node. The top import node icon changes to if there is an updated version of the source document available if the timestamp of the previously imported document version is more recent than the last imported or updated timestamp.
Select the updated version of the source document during the Update operation. Alternatively, you can update the file name and location of the source requirements document by right-clicking the top node of the requirement set and selecting Update source document name or location.
Update your requirements in the requirement set by selecting the top node of the requirements set and clicking Update in the Requirements Interchange pane. Updating requirements:
Matches the previously imported requirements to the updated source requirements and updates the requirements in the new version of the document. This includes overwriting any local changes you made to unlocked requirements.
Generates comments about the differences between the document versions in the Comments pane of the top Import node in the requirement set.
Updates the modifiedOn value for the updated requirements and the updatedOn value for the top Import node of the requirement set.
Marks the requirements set as dirty, even if the requirements data did not change because its updatedOn value changed.
Preserves links to updated requirements.
Preserves requirement SIDs.
Preserves comments on requirements.
Preserves local custom attributes you create within Simulink® Requirements™.
Updating requirements does not change the links to updated requirements, the requirement SIDs, the comments on requirements, or local custom attributes you create. If attributes in the requirement set and the external source document use the same name, the updated requirements use the attribute values defined in the external source document.
If you have change tracking enabled, and there are changes to a requirement with links, updating requirements might trigger change issues that you might have to resolve:
Match: No changes were detected between document versions. When you import different versions of the same document, the Update operation might detect only whitespace differences, such as carriage returns, linefeeds, and nonbreaking spaces. In this scenario, the Update operation does not update the rich text fields such as the Description and the Rationale.
Insertion: A new requirement was inserted in the requirement set.
Deletion: A previously imported requirement was deleted from the requirement set.
Update: The built-in or custom attribute values of a previously updated requirement were changed.
Move: A requirement was moved in the requirement hierarchy.
Reorder: A requirement was reordered with respect to its sibling requirements.
Before importing requirements into Simulink Requirements, ensure that your requirements in the requirements document have persistent and unique custom IDs that do not change across document versions. The Update operation otherwise matches unrelated requirements and displays more differences between document versions than actually exist.
Follow these guidelines when importing requirements from Microsoft® Word documents:
Use bookmarks for requirement custom IDs. You can then add content to the document while maintaining requirement references. If you use section headings as requirement custom IDs, changing the document can result in unresolved links when updating requirements.
If you import requirements into a requirement set on one computer and update your requirements on a different computer with a different set of fonts or styles installed, additional changes to the requirement descriptions may be tracked. These changes occur because the font or style is embedded in the HTML descriptions of the requirements.
Before you execute update requirements, convert documents that you created in an older version of Microsoft Word to the current version. This conversion prevents Microsoft Word from inserting spurious whitespaces in your requirements document.
In Microsoft Word, resolve issues related to the Trust Center or pending updates if you encounter any errors during the Import or Update operations. These issues might cause Microsoft Word to block incoming connections from MATLAB® .