Documentation

sltest.harness.open

Open test harness

Syntax

sltest.harness.open(harnessOwner,harnessName)

Description

sltest.harness.open(harnessOwner,harnessName) opens the harness harnessName, which is associated with the model or component harnessOwner.

Examples

collapse all

Open the test harness controller_harness, which is associated with the Controller subsystem in the f14 model.

f14;
sltest.harness.create('f14/Controller','Name','controller_harness');
sltest.harness.open('f14/Controller','controller_harness');

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

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

Input Arguments

collapse all

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?