This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Generate simulation or execution options for slvnvruntest or slvnvruncgvtest


runOpts = slvnvruntestopts
runOpts = slvnvruntestopts('cgv')


runOpts = slvnvruntestopts generates a runOpts structure for slvnvruntest.

runOpts = slvnvruntestopts('cgv') generates a runOpts structure for slvnvruncgvtest.

Output Arguments

collapse all

runOpts can have the following fields. If you do not specify a field, slvnvruncgvtest or slvnvruntest uses the default value.

Field NameDescription

Test case index array to simulate or execute from data file.

If testIdx = [], all test cases are simulated or executed.

Default: []


Available only for slvnvruntest.

If true, slvnvruntest collects model coverage data during simulation.

Default: false


Available only for slvnvruntest.

cvtest object for collecting model coverage.

If coverageSetting is [], slvnvruntest uses the coverage settings for the model specified in the call to slvnvruntest.

Default: []


Available only for slvnvruncgvtest.

If you have not configured your model to execute test cases with the CGV API, this field specifies creating and configuring the model.

If true and you have not configured the model to execute test cases with the CGV API, slvnvruncgvtest copies the model, fixes the configuration, and executes the test cases on the copied model.

If false, an error occurs if the tests cannot execute with the CGV API.

    Note:   If you have not configured the top-level model or any referenced models to execute test cases, slvnvruncgvtest does not copy the model, even if allowCopyModel is true. An error occurs.



Available only for slvnvruncgvtest.

Defines the software-in-the-loop (SIL) or processor-in-the-loop (PIL) approach for CGV:

  • 'topmodel'

  • 'modelblock'



Available only for slvnvruncgvtest.

Specifies mode of execution for CGV:

  • 'sim'

  • 'sil'

  • 'pil'



Create runOpts Objects for slvnvruntest and slvnvruncgvtest

% Create runOpts objects for slvnvruntest
runtest_opts = slvnvruntestopts;

% Create runOpts objects for slvnvruncgvtest
runcgvtest_opts = slvnvruntestopts('cgv')


Create a runOpts object at the MATLAB® command line.

Introduced in R2010b

Was this topic helpful?