Documentation

sltest.harness.close

Close test harness

Syntax

sltest.harness.close(modelName)
sltest.harness.close(harnessOwner)
sltest.harness.close(harnessOwner,harnessName)

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.

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.

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'

Introduced in R2015a

Was this topic helpful?