Main Content

sltest.harness.open

テスト ハーネスを開く

説明

sltest.harness.open(harnessOwner,harnessName) は、モデルまたはコンポーネント harnessOwner に関連付けられているハーネス harnessName を開きます。

すべて折りたたむ

f14 モデルの Controller サブシステムに関連付けられているテスト ハーネス controller_harness を開きます。

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

f14 モデルに関連付けられているテスト ハーネス sample_harness を開きます。

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

入力引数

すべて折りたたむ

モデルまたはコンポーネントのハンドルまたはパス。文字ベクトルまたは double として指定します。

例: 1.9500e+03

例: 'model_name'

例: 'model_name/Subsystem'

ハーネスの名前。文字ベクトルとして指定します。

例: 'harness_name'

バージョン履歴

R2015a で導入