sldvmergeharness
Merge test cases and initializations into one harness model
Description
collects the test data from each test harness model in status
= sldvmergeharness(name
, models
)models
.
The function saves the data in name
, which is a handle to the
new model.
If name
does not exist, sldvmergeharness
creates model name
as a copy of the model with the largest
number of signals among the models
.
sldvmergeharness
then merges the data from other models
listed in models
into this model. If you create
name
from a previous sldvmergeharness
run, subsequent runs of sldvmergeharness
for
name
maintains the structure and initialization from the
earlier run. If name
matches an existing Simulink® model, sldvmergeharness
merges the test data from
models
into name
.
sldvmergeharness
assumes that name
and
the rest of the models in models
have only one Signal
Editor block on the top level. If a model in models
has more than one Signal Editor block on the top level or its
top-level Signal Editor block does not have the same number of
signals as the top-level Signal Editor block in
name
, sldvmergeharness
does not merge
the model test data into name
.
To combine the test cases that use different sets of parameter values, use
sldvmergeharness
with sldvgencov
.
Note
sldvmergeharness
replaces
sldvharnessmerge
.