This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

addLoggedSignalSet

Class: sltest.testmanager.TestCase
Package: sltest.testmanager

Add logged signal set to a test case

Syntax

obj = addLoggedSignalSet(tc,Name,Value)

Description

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

Input Arguments

expand all

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

Examples

expand all

Open a model and create a test case.

% Open model
sldemo_absbrake

% 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 a signal set
lgset = tc.addLoggedSignalSet;

Introduced in R2019a