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.

sltest.testsequence.deleteSymbol

Delete test sequence block symbol

Syntax

sltest.testsequence.deleteSymbol(blockPath,symbolName)

Description

sltest.testsequence.deleteSymbol(blockPath,symbolName) deletes symbolName from a Test Sequence block specified by blockPath.

Examples

collapse all

This example shows how to delete a data symbol programmatically from a Test Sequence block. The data symbol DurationLimit is a constant.

1. Load the model.

cd(matlabroot);
Model = 'sltestRollRefTestExample';
load_system(fullfile(matlabroot,'examples','simulinktest',Model));

2. Delete the constant DurationLimit from the Test Sequence block.

sltest.testsequence.deleteSymbol('sltestRollRefTestExample/Test Sequence',...
    'DurationLimit');

3. Close the model.

close_system(Model,0);

Input Arguments

collapse all

Path to a Test Sequence block, including the block name, specified as a character vector.

Example: 'FanSpeedTestHarness/Test Sequence'

Name of the symbol to delete in the Test Sequence block, specified as a character vector.

Example: 'testOutput'

Introduced in R2017a