Simulink Test harness for component inside a masked subsystem doesn't resolver parameters

3 ビュー (過去 30 日間)
Lev Rodovskiy
Lev Rodovskiy 2019 年 9 月 5 日
コメント済み: Lev Rodovskiy 2019 年 9 月 10 日
I'm trying to create a test harness for subsystem that happens to be inside a masked subsystem. The workspace for this subsystem is the mask workspace. When I create a test harness for the subsystem, it attempts to resolve the parameters in the base workspace, apperantly ignorant of the its context as part of the masked subsystem. Is a limitation of the current design, or am I doing something incorrectly?

回答 (1 件)

Roshni Garnayak
Roshni Garnayak 2019 年 9 月 10 日
To prevent synchronization of the model and the harness, you can use “SyncOnPushRebuildOnly” synchronization mode. The block and its parameters are never synchronized between model and harness, unless explicitly done through Harness Pushor Rebuild.
For harness creation from command line:
sltest.harness.create(harnessOwner, 'Name', 'h1', 'SynchronizationMode', 'SyncOnPushRebuildOnly')
For harness Creation from the UI, select the “Advanced Properties” tab.
  1 件のコメント
Lev Rodovskiy
Lev Rodovskiy 2019 年 9 月 10 日
SyncOnPushRebuildOnly is grayed out when testharness for a subsystem that's inside a masked subsystem.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeTest Harnesses についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by