Skip to Main Content Skip to Search
Product Documentation

systest.TestCase - Collection of signals for creating time-based data

Syntax

testCase = systest.TestCase(test_case_name)

Description

testCase = systest.TestCase(test_case_name) is a collection of signals in the test case test_case_name.

TestCase objects allow you to map signal names to systest.signals.Signal objects.

Properties is a structure holding all properties of the TestCase. To access or modify a property of a TestCase object, use the Properties property.

testCase.Properties.Name = 'New Name;
testCase.Properties.Description = 'My Description;

The following functions can be used on the TestCase object:

Examples

The following example creates a test case where the ramp linearly increases.

Create a test case by specifying the name.

testCase = systest.TestCase('Test Case 1')

Map signal names directly to signal objects.

testCase.In1 = systest.signals.Signal('Constant');
testCase.In2 = systest.signals.Signal('Step');
testCase.In3 = systest.signals.Signal('Ramp');

How To

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS