|
|
|
| R2012a Documentation → Simulink Verification and Validation | |
Learn more about Simulink Verification and Validation |
|
| Contents | Index |
cvto = cvtest(root)
cvto = cvtest(root, label)
cvto = cvtest(root, label, setupcmd)
cvto = cvtest(root) creates a test specification object with the handle cvto. Simulate cvto with the cvsim command.
cvto = cvtest(root, label) creates a test object with the label label, which is used for reporting results.
cvto = cvtest(root, label, setupcmd) creates a test object with the setup command setupcmd.
Create a cvtest object for the Adjustable Rate Limiter block in the slvnvdemo_ratelim_harness model and display its contents:
open_system('slvnvdemo_ratelim_harness');
testObj1 = cvtest(['slvnvdemo_ratelim_harness', ...
'/Adjustable Rate Limiter']);
testObj1.label = 'Gain within slew limits';
testObj1.setupCmd = 'load(''within_lim.mat'');';
testObj1.settings.mcdc = 1;
testObj1 % Display content of test object
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |