Generate default options for slvnvmakeharness
generates
the default configuration for running harnessopts
= slvnvharnessoptsslvnvmakeharness
.
This example shows how to set harness options for a coverage harness.
Move the current MATLAB® directory to the location that contains the example files.
openExample('slcoverage/CreateACoverageHarnessWithDefaultOptionsExample');
Open the model using open_system
.
open_system('slvnvdemo_counter')
Create the harness options object using slvnvharnessopts
.
harnessOpts = slvnvharnessopts
harnessOpts = struct with fields: harnessFilePath: '' modelRefHarness: 1 usedSignalsOnly: 0 harnessSource: 'Signal Builder'
Use the harnessOpts
to create the harness file using slvnvmakeharness
.
harnessFile = slvnvmakeharness('slvnvdemo_counter', ... '', harnessOpts);