Save coverage tests and results to file
cvsave(filename, model)
cvsave(filename, cvd)
cvsave(filename, cvto1, cvto2,
...)
cvsave(filename, cell_array{
:})
cvsave(
saves all the tests (filename
, model
)cvtest
objects)
and results (cvdata
objects) related to model
in
the text file filename.cvt
. model
is
a handle to or name of a Simulink® model.
cvsave(
saves all the results (filename
, cvd
)cvdata
objects)
for the active model in the text file filename.cvt
. cvsave
also
saves information about any referenced
models.
cvsave(filename,
saves multiple cvto
1, cvto
2,
...)cvtest
objects
in the text file filename.cvt
. cvsave
also
saves information about any referenced
models.
cvsave(
saves the test results stored in each element of filename
, cell_array
{
:})cell_array
to
the file filename.cvt
. Each element in cell_array
contains
test results for a cvdata
object.
|
Character vector or string containing the name of the file in which to
save the data. |
|
Handle to a Simulink model |
|
|
|
|
|
Cell array of |
Use the coverage settings to save cumulative coverage results for a model:
Open the model for which you want to save cumulative coverage results.
In the Model Editor, select Model Settings on the Modeling tab.
On the Coverage pane of the Configuration Parameters dialog box, select Enable coverage analysis.
In the Results section, select Save last run in workspace variable.
Click OK to close the Configuration Parameters dialog box and save your changes.
Simulate the model by clicking the Run button and review the results.