Configure Code Coverage with Third-Party Tools - MATLAB & Simulink (original) (raw)

During a top-model or Model block SIL or PIL simulation, you can collect code coverage metrics for generated code using a third-party tool. Embedded Coder® supports the following tools:

To configure a code coverage tool for a top-model or Model block SIL or PIL simulation, in the Configuration Parameters dialog box, select theVerification pane:

  1. From the Third-party tool drop-down list, select a tool, for example, BullseyeCoverage or LDRAcover or LDRA tool suite.
  2. Click Configure to open the Code Coverage Settings dialog box.
  3. In the Installation folder field, specify the location where your coverage tool is installed. If you clickBrowse, the Select Installation Folder dialog box opens, which allows you to navigate to the folder where your coverage tool is installed. The software detects and displays the tool version.

    By default, the following parameters are enabled:
    • Code coverage for this model — Generate coverage data for the current (top) model.
    • Code coverage for referenced models — Generate data for models referenced by the current (top) model.
      If your top model has Model blocks, these parameters of the top model override the corresponding parameters of referenced models.
  4. Click OK.

With the LDRA tool suite:

For a model in a reference hierarchy, the software does not support simultaneous function execution time measurement and code coverage.

See Also

Topics

External Websites