Thread Subject:
cvhtml problem

Subject: cvhtml problem

From: Lucas

Date: 21 Jun, 2012 17:42:07

Message: 1 of 3

I’m trying to get coverage results on my model using cvhtml. Maybe I read it incorrectly but according to:

http://www.mathworks.com/help/toolbox/slvnv/ref/cvhtml.html

I believe it says cvhtml can take cvdata or cv.cvdatagroup objects to generate a report on, but when I generate a report using a cv.cvdatagroup object it only gives me the data on the last object that was put into the data group. I have the following code:

open_system(modelname);

set_param (modelname, 'RecordCoverage', 'on', 'CovHtmlReporting', 'on', 'CovCumulativeReport', 'on', 'CovMetricSettings', 'dcm');

cvt1 = cvtest(modelname);
cvt1.setupCmd = 'load(''file1.mat'');';
cvd1 = cvsim(cvt1);

cvt2 = cvtest(modelname);
cvt2.setupCmd = 'load(''file2.mat'');';
cvd2 = cvsim(cvt2);

cvdg = cv.cvdatagroup(cvd1, cvd2);
cvhtml('TestCoverageHTML.html', cvdg);

cvexit();

close_system(modelname, 0);

This will get me only the results stored in cvd2. So did I read the html file right or am I just implementing it wrong? If I run cvhtml like:

cvhtml('TestCoverageHTML.html', cvd1, cvd2);
everything works great.

Subject: cvhtml problem

From: Lucas

Date: 22 Jun, 2012 13:03:07

Message: 2 of 3

No coverage experts here???

Subject: cvhtml problem

From: Lucas

Date: 29 Jun, 2012 16:47:07

Message: 3 of 3

I'm done with the project I was working on, except for this part. Anyone familiar with cvhtml and cv.cvdatagroup objects that can help me.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
simulink Lucas 21 Jun, 2012 13:44:09
model coverage Lucas 21 Jun, 2012 13:44:09
cvhtml Lucas 21 Jun, 2012 13:44:09
rssFeed for this Thread

Contact us