Объедините тестовые данные из файлов данных
объединяет два или более теста и контрпримеры merged_data
= slvnvmergedata(data
1,data
2,...)data
в одну структуру данных теста merged_data
.
% Open the sldemo_mdlref_basic model, which contains three Model blocks % that reference the sldemo_mdlref_counter model: sldemo_mdlref_basic; % Log the input signals to the three Model blocks: data1 = slvnvlogsignals('sldemo_mdlref_basic/CounterA'); data2 = slvnvlogsignals('sldemo_mdlref_basic/CounterB'); data3 = slvnvlogsignals('sldemo_mdlref_basic/CounterC'); % Merge the logged data: merged_data = slvnvmergedata(data1, data2, data3); % Simulate the referenced model, sldemo_mdlref_counter,for coverage with % the merged data and display the coverage results in an HTML file. open_system('sldemo_mdlref_counter'); runOpts = slvnvruntestopts; runOpts.coverageEnabled = true; [ outData, initialCov ] = slvnvruntest('sldemo_mdlref_counter', ... merged_data, runOpts); cvhtml('Initial coverage', initialCov);
slvnvlogsignals
| slvnvmakeharness
| slvnvruncgvtest
| slvnvruntest
| sldvrun
(Simulink Design Verifier)