Documentation Center

  • Trial Software
  • Product Updates

slvnvmergedata

Combine test data from data files

Syntax

merged_data = slvnvmergedata(data1,data2,...)

Description

merged_data = slvnvmergedata(data1,data2,...) combines two or more test cases and counterexamples data into a single test case data structure merged_data.

Input Arguments

data

Structure that contains test case or counterexample data. Generate this structure by running slvnvlogsignals, or by running a Simulink® Design Verifier™ analysis.

Output Arguments

merged_data

Structure that contains the merged test cases or counterexamples

Examples

Open the sldemo_mdlref_basic model, which contains three Model blocks that reference the model sldemo_mdlref_counter. Log the input signals to the three Model blocks and merge the logged data using slvnvmergedata. Simulate the referenced model, sldemo_mdlref_counter, for coverage with the merged data and display the coverage results in an HTML file.

sldemo_mdlref_basic;
data1 = slvnvlogsignals('sldemo_mdlref_basic/CounterA');
data2 = slvnvlogsignals('sldemo_mdlref_basic/CounterB');
data3 = slvnvlogsignals('sldemo_mdlref_basic/CounterC');
merged_data = slvnvmergedata(data1, data2, data3);
open_system('sldemo_mdlref_counter');
runOpts = slvnvruntestopts;
runOpts.coverageEnabled = true;
[ outData, initialCov ] = slvnvruntest('sldemo_mdlref_counter', ...
     merged_data, runOpts);
cvhtml('Initial coverage', initialCov);

See Also

| | | |

Was this topic helpful?