%% Create a Coverage Harness with Default Options
% This example shows how to set harness options for a coverage harness.

% Copyright 2020 The MathWorks, Inc.

%%
% Move the current MATLAB&reg; 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

%%
% Use the |harnessOpts| to create the harness file using
% |slvnvmakeharness|.

harnessFile = slvnvmakeharness('slvnvdemo_counter', ...
              '', harnessOpts);