sldvmakeharness
Generate harness model
Syntax
Description
[
generates a test harness from the savedHarnessFilePath
] = sldvmakeharness(model
)model
, which is a handle to a
Simulink® model or the model name. sldvmakeharness
returns
the path and file name of the generated harness model in
savedHarnessFilePath
. sldvmakeharness
creates an empty harness model. The test harness includes one default test case that
specifies the default values for all input
signals.
[
generates a test harness from the data file savedHarnessFilePath
] = sldvmakeharness(model
, dataFile
)dataFile
.
[
generates a test harness from savedHarnessFilePath
] = sldvmakeharness(model
, dataFile
, harnessOpts
)model
by using the
dataFile
and the harnessOpts
, which
specifies the harness creation options. If the dataFile
is not
available, requires ''
for dataFile
.
If the software generates a harness, it does not imply that your model is compatible with the Simulink Design Verifier™ software.
Examples
Input Arguments
Output Arguments
Tips
To create a default harnessOpts
object, use
sldvharnessopts
.
Alternatives
sldvmakeharness
creates a test harness model without analyzing
the model. To analyze the model and create a test harness:
Open the model.
On the Design Verifier tab, in the Prepare section, from the drop-down menu for the mode settings, click Settings.
In the Configuration Parameters dialog box, on Design Verifier > Results pane, in Harness model options, set the options that you want.
Click OK.
To perform test generation analysis, on Design Verifier tab, in the Mode section, select Test Generation.
Click Generate Tests.
Version History
Introduced in R2009bSee Also
sldvharnessopts
| sldvmergeharness
| sldvrun
| slvnvharnessopts
(Simulink Coverage) | slvnvmakeharness
(Simulink Coverage) | slvnvmergeharness
(Simulink Coverage)