%% Change the Name of a Test Harness
% This example shows how to change the name of a test harness using sltest.harness.set.
%% Create a Test Harness
% Load the f14 model and create a test harness for the Controller subsystem.

load_system('f14')
sltest.harness.create('f14/Controller','Name','Harness1')

%
%% Change the Test Harness Name
% Change the name from Harness1 to ControllerHarness.

sltest.harness.set('f14/Controller','Harness1','Name','ControllerHarness')

%
%% Close the Model

close_system('f14',0)

% Copyright 2019 The MathWorks, Inc.