Main Content

cv.cvdatagroup class

Package: cv

Collection of cvdata objects

Description

A cv.cvdatagroup object contains one or more cvdata objects. Each cvdata object contains coverage results for a model in the model hierarchy.

Simulink® Coverage™ creates a cvdatagroup object when you simulate a model containing model references when coverage is enabled. Use the get and getAll class methods to retrieve coverage data for specific models in your model reference hierarchy.

The cv.cvdatagroup class is a handle class.

Creation

Description

example

cvdg = cv.cvdatagroup(cvdo1,cvdo2,...) creates a cvdatagroup object that contains the specified cvdata objects.

Input Arguments

expand all

Coverage data, specified as one or more cvdata objects.

Data Types: cvdata

Properties

expand all

Object name, specified as a character array.

Example: 'name'

Attributes:

GetAccess
public
SetAccess
public

Data Types: char

Methods

expand all

Examples

collapse all

This example shows how to create a cvdatagroup object using two cvdata objects.

Record coverage for slvnvdemo_cv_small_controller.

model_1 = 'slvnvdemo_cv_small_controller';
load_system(model_1)
cvdo1 = cvsim(model_1);

Record coverage for slvnvdemo_powerwindow_controller.

model_2 = 'slvnvdemo_powerwindow_controller';
load_system(model_2)
cvdo2 = cvsim(model_2);

Create a cv.cvdatagroup object that contains two cvdata objects.

cvdg = cv.cvdatagroup(cvdo1,cvdo2);

Version History

Introduced in R2007b

See Also