Products & Services Solutions Academia Support User Community Company

Learn more about IEC Certification Kit   

Generating a Traceability Matrix

About Traceability Matrices

When you use Model-Based Design and production code generation to develop application software components, you can generate a traceability matrix. The traceability matrix provides traceability among model objects, generated code, and model requirements. You can add comments to the generated traceability matrix. If you change the model and regenerate the traceability matrix, the software retains your comments.

For a given model, the generated traceability matrix can provide information about:

Generate the traceability matrix using the iec.ExportTraceReport function. The function creates an XLS file that contains the following worksheets:

Generating Traceability Matrices Limitations

The iec.ExportTraceReport function that you use to generate traceability matrices has the following limitations:

Prerequisites for Generating a Traceability Matrix

Before generating a traceability matrix for model objects, generated code, and model requirements, perform the following steps:

  1. Optionally, attach requirements documents. For more information, see Managing Model Requirements in the Simulink Verification and Validation documentation.

  2. In the Configuration Parameters dialog box, on the Real-Time Workshop > Report pane, select:

    1. Create code generation report

    2. At least one of the following Traceability Report Contents parameters:

  3. Generate code for the model.

      Tip   You do not have to build an executable to generate a traceability matrix. To generate code only, on the Real-Time Workshop > General pane, select Generate code only.

How to Generate a Traceability Matrix

To generate a traceability matrix:

  1. Open the model.

  2. Ensure that you have completed the Prerequisites for Generating a Traceability Matrix.

  3. In the MATLAB® Command Window, enter the following command to generate the traceability matrix, where model_name is the name of the model:

    iec.ExportTraceReport('model_name')

    The software generates and opens the traceability matrix.

  4. Review the traceability matrix and add comments in new columns. For more information, see Adding Comments to a Traceability Matrix.

  


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