| Simulink® Verification and Validation™ | ![]() |
[cvtos, cvdos] = cvload(filename) [cvtos, cvdos] = cvload(filename, restoretotal)
The cvload command loads into memory the coverage tests and results stored in a file by the cvsave command.
[cvtos, cvdos] = cvload(filename) loads the tests and data stored in the text file filename.cvt. The cvtest objects that are successfully loaded are returned in cvtos, a cell array of cvtest objects. The cvdata objects that are successfully loaded are returned in cvdos, a cell array of cvdata objects. cvdos has the same size as ctvos, but can contain empty elements if a particular test has no results.
[cvtos, cvdos] = cvload(filename, restoretotal) restores the cumulative results from prior runs if restoretotal is 1. If restoretotal is unspecified or 0, the model's cumulative results are cleared.
The following are some special considerations for using the cvload command:
If a model with the same name exists in the coverage database, only the compatible results that reference the existing model are loaded to prevent duplication.
If the Simulink models referenced from the file are open but do not exist in the coverage database, the coverage tool resolves the links to the existing models.
When you are loading several files that reference the same model, only the results that are consistent with the earlier files are loaded.
![]() | cvhtml | cvmodelview | ![]() |
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |