Main Content

sltest.testmanager.LoggedSignalSet class

Package: sltest.testmanager

Create or modify a set of logged signals


An instance of sltest.testmanager.LoggedSignalSet stores a set of sltest.testmanager.LoggedSignal objects. You can use the logged signals for data comparison with baseline criteria, equivalence criteria, custom criteria, or in iterations.




obj = addLoggedSignalSet(tc,Name,Value) creates and adds a LoggedSignalSet object to an sltest.testmanager.TestCase object.

objs = getLoggedSignalSets(tc,Name,Value) creates and returns a vector of the LoggedSignalSet objects that are stored in a test case object.

Input Arguments

expand all

Name of the test case object.

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Name of the logged signal set.

Example: obj = addLoggedSignalSet(tc,'Name','mylgset');

When the test case is an equivalence test, this index specifies the simulation that contains the signal set.

Example: obj = getLoggedSignalSets(tc_equiv,'SimulationIndex',2);


expand all

Name of the signal set.

Indicates whether the signals contained in the set are used during test case execution.


expand all


collapse all

Open a model and create a signal set.

% Open model for this example

% Create test case
tf = sltest.testmanager.TestFile(strcat(pwd,'\mytf.mldatx'));
ts = sltest.testmanager.TestSuite(tf,'myts');
tc = sltest.testmanager.TestCase(ts,'baseline','mytc');

% Create signal set
lgset = tc.addLoggedSignalSet;
Introduced in R2019a