sldvruntestopts
Generate simulation or execution options for sldvruntest or
sldvruncgvtest
Description
Examples
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
Generates a default runOpts structure for
sldvruncgvtest.
Example: runcgvtest_options =
sldvruntestopts('cgv');
Output Arguments
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.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- 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)