sldvruntest
Simulate model by using input data
Syntax
Description
simulates the outData
= sldvruntest(model
, dataFile
)model
by using
all the test cases in the
dataFile
. outData
is an array of Simulink.SimulationOutput
objects.
Each array element contains the simulation output data of the corresponding test
case.
[
simulates the outData
, covData
]
= sldvruntest(model
, dataFile
, runOpts
)model
by using the test cases in the
dataFile
. When the runOpts
field
coverageEnabled
is true
, the Simulink®
Coverage™ software collects the model coverage information during the
simulation. sldvruntest
returns the coverage data in the
cvdata
object covData
.
Examples
Input Arguments
Output Arguments
Tips
The
dataFile
that you create with a Simulink Design Verifier analysis or by runningsldvlogsignals
contains time values and data values. When you simulate a model by using these test cases, you can achieve missing coverage. The missing coverage occurs when the time values in thedataFile
are not aligned with the current simulation time step due to numeric calculation differences. You achieve missing coverage more frequently with multirate models— models that have multiple sample times.For
useParallel
, the following points must be considered when simulating test cases using parallel computing:Starting a parallel pool can take time, which impacts the overall analysis time. To reduce the analysis time:
Make sure that the parallel pool is already running before you run a test generation analysis. By default, the parallel pool shuts down after being idle for a specified number of minutes. To change the setting, see the topic 'Specify Your Parallel Preferences' in Parallel Computing Toolbox.
Load Simulink on all the parallel pool workers.
The simulation occurs sequentially when:
The cluster is not
local
. Configure parallel preferences to use thelocal
cluster only. To change the setting, see the topic 'Specify Your Parallel Preferences' in Parallel Computing Toolbox.The model is in
dirty state
prior to launching the SLDV analysis.The model has
ToFile
blocks.The model is in Software-in-the-loop (SIL) simulation mode.
The model is an internal harness.
Version History
Introduced in R2007b
See Also
cvsim
(Simulink Coverage) | cvtest
(Simulink Coverage) | sim
| sldvrun
| sldvruntestopts