Products & Services Solutions Academia Support User Community Company

Learn more about Simulink Verification and Validation   

Linking Simulink Objects to DOORS Requirements

Creating DOORS Requirements

Use the RMI to create a link from a Simulink object to a DOORS requirement. The following example describes how to create this link.

To begin this example, create a DOORS project and formal module, and insert two requirements:

  1. Start the DOORS software.

  2. Create a project named Test Project and a new formal module named Requirements.

  3. In the My Requirements module, insert a new object.

  4. In the Object 1 properties dialog box, enter the Heading Transmission Requirements, some text for Object Text, and click OK. (You do not need to enter any Short Text.)

  5. In the My Requirements module, insert another new object.

  6. In the Object properties dialog box, enter the Heading Engine Requirements, some text for Object Text, and click OK. (You do not need to enter any Short Text.)

  7. Save your changes.

Creating One-Way Links from Simulink Objects to DOORS Requirements

You can create one-way links from Simulink objects to DOORS requirements without having to modify the requirements.

For this example, and for the following examples, you create a writable copy of the sf_car model that ships with your Simulink software.

To create a one-way link from a Simulink object to a requirement:

  1. In the MATLAB Command Window, open the demo model sf_car.mdl and save it as sf_car_doors.

  2. In the model, right-click the transmission subsystem and select Requirements > Edit/Add Links.

  3. In the Requirements dialog box, click New.

  4. For Document type, select DOORS Item.

  5. Click Browse.

  6. Browse to and select the My Requirements module. Click OK.

  7. To list the two requirements that you created in the My Requirements module, click the Document Index tab.

  8. Select 1 Transmission Requirements and click OK.

  9. You have created a one-way link from the transmission subsystem in the model to the Transmission Requirements requirement in the DOORS database. To verify the link, in the sf_car_doors model, right-click the transmission subsystem and select Requirements to see the option Requirements > 1. "1 Transmission Requirements".

  10. Save the sf_car_doors model.

DOORS IDs

The DOORS software gives each requirement in the formal module a unique ID. In the My Requirements formal module you created, the IDs are 1 and 2. If you rename the module or rearrange the objects in the module, the IDs remain unchanged.

The DOORS software also assigns each module a unique eight-digit hexadecimal number. RMI uses that number, along with the DOORS ID, to locate requirements. In this example, the Requirements dialog box lists 000001a0 as the My Requirements formal module ID. When you execute the preceding steps, the formal module ID may be different.

Navigating from a Simulink Object to a DOORS Requirement

With one-way links, you can navigate from a Simulink object to a requirement in the DOORS database. To navigate from the transmission subsystem in your sf_car_doors model using the link that you created:

  1. Right-click the transmission subsystem and select Requirements > 1. "1 Transmission Requirements"

    The My Requirements module opens to the Transmission Requirements object.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS