Main Content


Add symbol to test sequence


sltest.testsequence.addSymbol(blockPath,name,kind,scope) adds a symbol name with properties specified by scope and kind to a Test Sequence block specified by blockPath. The new symbol appears in the Symbols sidebar of the Test Sequence Editor. Symbols include data, messages, function calls, and triggers.


collapse all

This example creates a parameter theta in the test sequence block.

Set paths and open the model.

filePath = fullfile(matlabroot,'toolbox',...
rollModel = 'RollAutopilotMdlRef';
testHarness = 'RollReference_Requirement1_3';

Open the test harness.[rollModel '/Roll Reference'],testHarness)

Add a parameter.

   ('RollReference_Requirement1_3/Test Sequence',...

Input Arguments

collapse all

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

Example: 'FanSpeedTestHarness/Test Sequence'

Name of the new symbol, specified as a character vector. The symbol must not already exist in the Test Sequence block.

Example: 'theta'

Symbol type, specified as a character vector.

Example: 'Data'

Symbol scope, specified as a character vector.

Example: 'Parameter'

Introduced in R2016a