Contenido principal

Coverage Pane

Use the Coverage pane of the configuration parameters dialog box to configure coverage settings for your model. For more information about coverage, see Use Simulink Coverage to Analyze Your Model.

Coverage Configuration Parameters

On the Coverage pane in the Configuration Parameters dialog box, set the options for the coverage calculated during simulation.

Image of the Configuration Parameters Dialog Box shows the default view of coverage options.

ParameterDescription

Enable coverage analysis

Enable coverage analysis on the model.

Scope of coverage analysis

Specify whether to collect coverage for the entire system or for a specific referenced model, Observer model, or subsystem.

Select Models

Specify the referenced model for which to analyze coverage.

Select Subsystem

Specify the path to the subsystem for which to analyze coverage.

Include in analysis: MATLAB files

Enable coverage analysis for MATLAB® functions in external MATLAB files.

Include in analysis: C/C++ S-functions

Enable coverage analysis for C/C++ code in S-Function blocks in the model.

Structural coverage level

Specify the types of coverage data to analyze. For more information, see Structural Coverage Metrics.

Lookup table

Specify whether to collect coverage for lookup table blocks.

Signal range

Specify whether to collect signal range coverage.

Signal size

Specify whether to collect signal size coverage.

Objectives and constraints

Specify whether to collect coverage for objects and constraints specified by Simulink® Design Verifier™ blocks.

Saturation on integer overflow

Specify whether to collect saturation on integer overflow coverage.

Relational boundary

Specify whether to collect relational boundary coverage.

Relational boundary coverage absolute tolerance

Specify the value of absolute tolerance for relational boundary coverage. Applies to signals with a floating-point data type.

Relational boundary coverage relative tolerance

Specify the value of relative tolerance for relational boundary coverage. Applies to signals with a floating-point data type.

Save last run in workspace variable

Specify whether to save the coverage analysis data from simulations to a variable in the base MATLAB workspace.

cvdata object name

Specify the name of the cvdata object in the MATLAB workspace that contains coverage results from simulating the model.

Increment variable name with each simulation

Specify whether to create a new variable to store coverage results for each consecutive simulation.

Autosave data file name

Specify the name of the CVT file to which to save coverage data.

Output directory

Specify the folder where Simulink Coverage™ saves coverage data files.

Coverage Advanced Parameters

These parameters are in the Advanced parameters section:

ParameterDescription

Restrict coverage recording interval

Specify whether to record coverage only for a specified time interval.

Coverage interval start time

Specify the simulation time at which to begin coverage analysis.

Coverage interval stop time

Specify the simulation time at which to stop coverage analysis.

Force block reduction off

Specify whether to analyze coverage for every supported block in the model.

Treat Simulink logic blocks as short-circuited

Specify whether coverage takes into account the order of operands in blocks that perform a logical operation.

MCDC mode

Specify the definition of modified condition decision coverage (MCDC) to use during coverage analysis.

Warn when unsupported blocks exist in model

Specify whether to display a warning when Simulink Coverage detects that the model contains blocks that are not supported for model coverage analysis.

Coverage filter filename

Specify the filter file to attach to the coverage data.

Coverage metric settings

Specify which coverage metrics to analyze.

Record coverage for this model

Specify whether to perform model coverage analysis during simulation.

Record coverage for referenced models

Specify whether to perform coverage analysis for referenced models during simulation.

Include top model

Specify whether to analyze coverage for the top-level model in addition to referenced models.

Coverage report options

Specify the formatting of the HTML coverage report.

Additional data to include in coverage report

Specify additional cvdata objects to include in the coverage report.

Exclude inactive choices of variants

Specify whether to exclude inactive choices of Simulink variants with startup activation time and inactive variant configurations in Stateflow® charts from coverage data results.

Update coverage results on pause

Specify whether to update the coverage report when you pause the simulation.

Save output data

Specify whether to save coverage data results to a file.

Enable cumulative data collection

Specify whether to collect model coverage results from consecutive simulations.

Include cumulative data in coverage report

Specify whether to include model coverage results from consecutive simulations in a single HTML coverage report.

Save cumulative coverage results in workspace variable

Specify whether to save coverage data from consecutive simulations in a single cvdata object in the MATLAB workspace.

Cumulative coverage variable name

Specify the name of the cvdata object that contains the coverage data from consecutive simulations.