Main Content

remove

Class: sltest.testmanager.SignalCriteria
Namespace: sltest.testmanager

Remove signal criteria

Syntax

remove(sc)

Description

remove(sc) removes signal criteria from the baseline or equivalence criteria set. The signal criteria object is empty after a call to this function.

Input Arguments

expand all

Signal criteria that you want to remove from a baseline or equivalence criteria set, specified as a sltest.testmanager.SignalCriteria object.

Examples

expand all

% Open the model for this example
openExample('sldemo_absbrake');

% Create the test file, test suite, and test case structure
tf = sltest.testmanager.TestFile('API Test File');
ts = createTestSuite(tf,'API Test Suite');
tc = createTestCase(ts,'baseline','Baseline API Test Case');

% Remove the default test suite
tsDel = getTestSuiteByName(tf,'New Test Suite 1');
remove(tsDel);

% Assign the system under test to the test case
setProperty(tc,'Model','sldemo_absbrake');

% Capture the baseline criteria
baseline = captureBaselineCriteria(tc,'baseline_API.mat',true);

% Test a new model parameter by overriding it in the test case
% parameter set
ps = addParameterSet(tc,'Name','API Parameter Set');
po = addParameterOverride(ps,'m',55);

% Set the baseline criteria tolerance for one signal
sc = getSignalCriteria(baseline);
sc(1).AbsTol = 9;

% Remove second signal criteria from baseline
remove(sc(2));

Version History

Introduced in R2015b