Main Content

sltest.harness.close

Close test harness

Description

sltest.harness.close(modelName) closes the open test harness associated with the model modelName.

sltest.harness.close(harnessOwner) closes the open test harness associated with the model or component harnessOwner.

sltest.harness.close(harnessOwner,harnessName) closes the test harness harnessName, which is associated with the model or component harnessOwner.

Examples

collapse all

Close the test harness named controller_harness, associated with the subsystem Controller in the model f14.

openExample('f14');
sltest.harness.create('f14/Controller',...
   'Name','sample_controller_harness');
sltest.harness.open('f14/Controller',...
   'sample_controller_harness');
sltest.harness.close('f14/Controller',...
   'sample_controller_harness');

Close the test harness named sample_harness, which is associated with the model f14.

openExample('f14');
sltest.harness.create('f14','Name','sample_harness');
sltest.harness.open('f14','sample_harness');
sltest.harness.close('f14','sample_harness');

Input Arguments

collapse all

Model handle or path, specified as a character vector or double.

Example: 1.9500e+03

Example: 'model_name'

Model or component handle or path, specified as a character vector or double.

Example: 1.9500e+03

Example: 'model_name'

Example: 'model_name/Subsystem'

The name of the harness, specified as a character vector.

Example: 'harness_name'

Version History

Introduced in R2015a