Quantcast

Documentation Center

  • Trial Software
  • Product Updates

slvnvruntestopts

Generate simulation or execution options for slvnvruntest or slvnvruncgvtest

Syntax

runOpts = slvnvruntestopts
runOpts = slvnvruntestopts('cgv')

Description

runOpts = slvnvruntestopts generates a runOpts structure for slvnvruntest.

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

Output Arguments

runOpts

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

Field NameDescription
testIdx

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

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

Default: []

SignalLogging
SaveFormat

Available only for slvnvruntest.

Specifies format for signal logging data for signals connected to the outports of the model and for intermediate signals configured for logging.

Default: 'Dataset'

coverageEnabled

Available only for slvnvruntest.

If true, slvnvruntest collects model coverage data during simulation.

Default: false

coverageSetting

Available only for slvnvruntest.

cvtest object to use for collecting model coverage.

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

Default: []

allowCopyModel

Available only for slvnvruncgvtest.

Specifies to create and configure the model if you have not configured it to execute test cases with the CGV API.

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.

Default:false

cgvCompType

Available only for slvnvruncgvtest.

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

  • 'topmodel'

  • 'modelblock'

Default:'topmodel'

cgvConn

Available only for slvnvruncgvtest.

Specifies mode of execution for CGV:

  • 'sim'

  • 'sil'

  • 'pil'

Default:'sim'

Examples

Create runOpts objects for slvnvruntest and slvnvruncgvtest:

%Create options for slvnvruntest
runtest_opts = slvnvruntestopts;
%Create options for slvnvruncgvtest
runcgvtest_opts = slvnvruntestopts('cgv')

Alternatives

Create a runOpts object at the MATLAB® command line.

See Also

|

Was this topic helpful?