Create and edit requirements
Use the Requirements Editor app to create requirement sets, requirements, import and export requirements, and link requirements to blocks and other supported artifacts.
Open the Requirements Editor App
Simulink® Toolstrip: On the Apps tab, under Model Verification, Validation, and Test, click Requirements Editor.
MATLAB® Toolstrip: On the Apps tab, under Verification, Validation, and Test, click Requirements Editor.
MATLAB command prompt: Enter
Create, Open, and Delete Requirement Sets
To create a new requirement set:
In the Requirements Editor, click New Requirement Set.
Specify the name and file location of the requirement set. The editor saves the requirement set as a SLREQX file and the requirement set appears in the Requirements Editor.
You can open existing requirement sets by clicking Open and selecting a requirement set file. To delete a requirement set, click a requirement set and click the Close button . Removing a requirement set does not delete the SLREQX file.
Add Requirements to a Requirement Set
To add requirements to a requirement set:
In the left pane, select a requirement set.
In the Requirements section, click Add Requirement.
Each requirement you create creates an associated
slreq.Requirement object. You can edit the properties of the requirement in
the Requirements Editor or programmatically. To adjust the properties in the
Requirements Editor, click the requirement. The properties appear in the
right pane of the editor.
Link Requirements to Model Artifacts
To link requirements to artifacts in models:
In an open Simulink model, click a model artifact. For a list of supported model artifacts, see Supported Model Objects for Requirements Linking.
In the Requirements Editor, click the requirement you want to link.
In the Links section, click Add Link > Link from Selection in Simulink.
For more information, see Requirement Links.
Filter Displayed Requirements
By default, the Requirements Editor displays loaded requirements in alphabetical order. To reduce the number of requirements displayed, apply a filter.
Open a requirement set.
In the View section, click Show Requirements.
In the Edit section, click Search.
When you perform a search:
A requirement set is not visible if none of the requirements in the set pass the filter. If a child requirement passes the filter, the parent requirement set is also visible.
The filter is not case-sensitive. For example, typing A displays the requirements whose columns contain an uppercase or lowercase A.
The filter applies to the columns in the editor. If you add columns, the filter automatically applies to them.
Filter Displayed Links
By default, the Requirements Editor displays links to loaded requirement sets, in alphabetical order. To reduce the number of links displayed, apply a filter.
Open a requirement set.
In the View section, click Show Links.
In the Edit section, click Search.
Display Additional Columns
To display additional columns in the left pane:
Decide if you want to view requirement or link sets. To view requirement sets, in the View section, click Show Requirements. To view link sets, in the View section, click Show Links.
In the View section, click the Columns button .
If you selected Show Requirements, you can select from these options:
Implementation Status: Displays the implementation status summaries for your requirement sets. For more information, see Review Requirements Implementation Status.
Verification Status: Displays the verification status summaries for your requirement sets. For more information, see Review Requirements Verification Status.
Select Attributes: Select additional attributes to display. You can display the Index, ID, Summary,Type, Keywords, SID, CreatedOn, CreatedBy, ModifiedOn, SyncronizedOn, ModifiedBy, Revision, Verified, Implemented, Description, Rationale. The default attributes are Index, ID, and Summary.
If you selected Show Links, you can only click Select Attributes. You can then select the following attributes: Label, Source, Type,Destination, Keywords, SID, CreatedOn, CreatedBy, ModifiedOn, ModifiedBy, Revision, Description, and Rationale. The default attributes are Label, Source, Type, and Destination.
Once you display the attributes, you can filter them with the Search feature.
Import Requirements in Other Formats
To import requirements from a third-party requirements application:
In the File section, click Import to open the Import Requirements window.
In the Document Type property, select the file format. You can select Microsoft® Word, Microsoft Excel®, ReqIF™ File, and IBM® DOORS® Next.
In the Document Location property, select the location of the file.
Set the import options. Each format has different import options.
If you import the requirements, Requirements Toolbox™ creates an
slreq.Requirement object for each requirement. If you import the requirements
as referenced requirements, Requirements Toolbox creates an
slreq.Reference object for each requirement. For more information, see Import Requirements from Third-Party Applications.
Create Report from Requirements Information
To create a report for one or more requirement sets:
In the Share section, click Export > Generate Report. The Report Generation Options window opens.
Set the file name and location of the report by clicking the Select button.
Select the report content options.
Select the requirement sets to include in the report. The Included Requirement Sets section displays the loaded requirement sets. To add a requirement set, open the requirement set using the Requirements Editor.
Click Generate Report.
For more information, see Report Requirements Information.
Open the Traceability Matrix Window
To access the Traceability Matrix window:
In the Analyze section, click Traceability Matrix. You can then create a traceability matrix in the window. For more information, see Track Requirement Links with a Traceability Matrix.
Create a Traceability Diagram
To create a traceability diagram:
Click a requirement set.
In the Analyze section, click Traceability Diagram.
For more information, see Visualize Links with a Traceability Diagram.
Open the model testing dashboard
If you have a license for Simulink Check™, you can also open the model testing dashboard. To open the model testing dashboard:
In the Analyze section, click Model Testing Dashboard. For more information, see Assess Requirements-Based Testing Quality by Using the Model Testing Dashboard (Simulink Check) and Explore Status and Quality of Testing Activities Using the Model Testing Dashboard (Simulink Check).
Show Requirements — Show requirements and requirement sets
on (default) | off
Show the loaded requirements and requirement sets. To enable this parameter, in the View section, click Show Requirements.You can enable this parameter or the Show Links parameter.
Show Links — Show requirements links
off (default) | on
Show the loaded links and link sets. To enable this parameter, in the View section, click Show Links. You can enable this parameter or the Show Requirements parameter.
Columns — Select displayed columns in requirement and link sets
Select attributes and information to display when viewing loaded requirement and link sets. In the View section, click the Columns button . Once you display the attributes, you can filter them with the Search feature.
Information — Select displayed information for selected requirements
Change Information | Comments | Code Traceability
Select information you want to display in individual requirements. To access this parameter, in the View section, click the Information button . You can then select the following information types:
Change Information: Indicates changes to requirements. For more information, see Track Changes to Requirement Links.
Comments: Adds the comment section in the right pane of selected requirements.
Code Traceability: Displays code traceability information of requirements. For more information, see Requirements Traceability for MATLAB Code Lines.
The default information types displayed are Change Information and Comments.
Open the Requirements Manager app in a Simulink model by navigating to the Apps tab and, under Model Verification, Validation, and Test, clicking Requirements Manager. You can use the Requirements Manager to edit and link requirements without leaving the Simulink model.