Main Content

sltest.testmanager.LoggedSignalSet Class

Namespace: 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 Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

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 the model for this example.


Create test file, test suite and test case.

tf = sltest.testmanager.TestFile('mytf.mldatx');
ts = sltest.testmanager.TestSuite(tf,'myts');
tc = sltest.testmanager.TestCase(ts,'baseline','mytc');

Create a signal set.

lgset = tc.addLoggedSignalSet;

Clear the Test Manager.


Version History

Introduced in R2019a