| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink Verification and Validation |
| Contents | Index |
| Learn more about Simulink Verification and Validation |
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.
label |
Label for test object |
root |
The name of, or a handle to, a Simulink model or a subsystem. Only the specified model or subsystem and its descendants are subject to model coverage testing. |
setupcmd |
Setup command for creating test object. The setup command is executed in the base MATLAB workspace just prior to running the simulation. This command is useful for loading data prior to a test. |
cvto |
A test specification object with the following structure:
|
Create a cvtest object of the Adjustable Rate Limiter block in the demo model slvnvdemo_ratelim_harness 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
![]() | cvsimref | decisioninfo | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |