주요 콘텐츠

sltest.testmanager.LoggedSignalSet Class

Namespace: sltest.testmanager

Create or modify a set of logged signals

Description

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.

Creation

Description

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

example

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

example

Input Arguments

expand all

Name of the test case object.

Name-Value Arguments

expand all

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);

Properties

expand all

Name of the signal set.

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

Methods

expand all

Examples

collapse all

Open the sldemo_absbrake model.

openExample("sldemo_absbrake")

Create the 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");

Add the logged signal set to the test case and use getLoggedSignalSets to display the added signal set..

lgset = tc.addLoggedSignalSet;
getLoggedSignalSets(tc)

Version History

Introduced in R2019a