Skip to Main Content Skip to Search
Product Documentation

Using Test Cases and Signals in SystemTest Test Elements

Introduction

You can use the test cases and signals you create in the Test Case Editor within your test by using some of the test elements within the SystemTest software.

You can select a Test Case Data test vector or individual signals from the test vector within the following elements:

The following sections discuss using test cases and signals in these elements.

Simulink Element

You can create signals in the Test Case Editor and use them to test a Simulink model. You do this by mapping the signals in the Simulink element using a Test Case Data test vector.

One possible high-level workflow of using test cases and signals in your test via the Simulink element is:

MATLAB Element

You can access the data from a Test Case Data test vector by using a MATLAB element in a test that has a Test Case Data test vector. You could use the data for a variety of reasons, such as writing it to a CSV file, calling a custom function, or creating a plot.

To see example code you could use in a MATLAB element, see Using a MATLAB Element to Access Test Case Data Test Vector Information.

General Plot Element

You can plot data from a Test Case Data test vector or any individual signals from a Test Case Data test vector in a General Plot element. Test Case Data test vectors and signals are supported in two plot types – plot and Simulink data. Any other plot type results in an error at run time.

The following sections describe the behavior of using a Test Case Data test vector or an individual signal for these two plot types.

plot Plot Type

Simulink data Plot Type

  


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