%% Create an S-Function Selector
% This example shows how to create an S-Function Selector.

% Copyright 2020 The MathWorks, Inc.

%%
% Start by loading the model by using |load_system|.
% 

load_system('slvnvdemo_covfilt');

%%
% Create an S-Function selector by using |slcoverage.SFcnSelector|. The
% first input is the selector type, |slcoverage.SFcnSelectorType.SFcnName|.
% The second input is the path to the S-Function.
%

sel = slcoverage.SFcnSelector(slcoverage.SFcnSelectorType.SFcnName,...
                         'slvnvdemo_covfilt/Mode Logic/ SFunction ')
