Main Content

Highlight Model Objects with Requirements

To review traceability in your model, you can highlight model objects that have requirements links.

Highlight Model Objects with Requirements Using Model Editor

If you are working in the Simulink® Editor and want to see which model objects in the slvnvdemo_fuelsys_officereq model have requirements, follow these steps:

  1. Open the example model:

    openExample("slvnvdemo_fuelsys_officereq.slx")

  2. Select Coverage Highlighting from the Coverage app.

    Two types of highlighting indicate model objects with requirements:

    • Yellow highlighting indicates objects that have requirements links for the object itself.

      The MAP sensor block is highlighted in yellow because it links to requirements.

    • Orange outline indicates objects, such as subsystems, whose child objects have requirements links.

      The fuel rate controller subsystem has an orange outline because one of its child objects links to requirements.

    Objects that do not have links to requirements are colored gray.

    The Metered Fuel scope and the air/fuel ratio scope are colored gray because they do not have links to requirements.

  3. You remove the highlighting from the model from the Coverage app. Alternatively, you can right-click anywhere in the model, and select Remove Highlighting.

While a model is highlighted, you can still manage the model and its contents.

Highlight Model Objects with Requirements Using Model Explorer

If you are working in Model Explorer and want to see which model objects have requirements, follow these steps:

  1. Open the example model:

    openExample("slvnvdemo_fuelsys_officereq.slx")

  2. In the Modeling tab, click Model Explorer.

  3. To highlight all model objects with requirements, click the Highlight items with requirements on model icon ().

    The Simulink Editor window opens, and all objects in the model with requirements are highlighted.

Note

If you are running a 64-bit version of MATLAB®, when you navigate to a requirement in a PDF file, the file opens at the beginning of the document, not at the specified location.