sldvruntestopts
Generate simulation or execution options for sldvruntest
or
sldvruncgvtest
Description
Examples
Create runopts
for sldvruntest
Create runOpts
for the
sldvdemo_cruise_control
model. Then, analyze the model by using
sldvruntest
.
Open the sldvdemo_cruise_control
example model.
openExample('sldv/CruiseControlTestGenerationExample',... 'supportingFile', 'sldvdemo_cruise_control');
Set the sldvoptions
and create runOpts
for
sldvruntest
.
opts = sldvoptions; opts.Mode = 'TestGeneration'; opts.SaveHarnessModel = 'on'; opts.SaveReport = 'off'; [ status, files ] = sldvrun('sldvdemo_cruise_control', opts); runOpts = sldvruntestopts;
Analyze the model by using the runOpts
.
[ outData ] = sldvruntest('sldvdemo_cruise_control',... files.DataFile, runOpts);
Input Arguments
cgv
— Default options for sldvruncgvtest
character vector | string scalar
Generates a default runOpts
structure for
sldvruncgvtest
.
Example: runcgvtest_options =
sldvruntestopts('cgv');
Output Arguments
runOpts
— Configuration of sldvruntest
or sldvruncgvtest
structure
A structure whose fields specify the configuration of sldvruntest
or sldvruncgvtest
. If you do not specify a field
name, sldvruncgvtest
or sldvruntest
uses the
default value. runOpts
can contain the fields listed in the
table.
Field Name | Description |
---|---|
testIdx | Test case index array to simulate or execute from
If |
signalLoggingSaveFormat | Available only for Specifies the format of signal logging data for signals that connect to the outport of the model and for intermediate signals that are configured for logging. If you specify
Default:
|
coverageEnabled | Available only for If
Default:
|
coverageSetting | Available only for
If Default:
|
allowCopyModel | Available only for If
you have not configured If If Note If you have not configured the top-level model or
any referenced models to execute test
cases, |
cgvComType | Available only for
Defines the software-in-the-loop (SIL) or processor-in-the-loop (PIL) approach for CGV:
|
cgvConn | Available only for
Specifies mode of execution for CGV:
|
| Available only for If
Default:
|
| Available only for If
Default:
|
Alternatives
Create a runOpts
object for sldvruntest
from the
MATLAB® Command Window.
Version History
Introduced in R2010b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)