Using a Library linked Subsystem twice in a model with different Parameter-Settings

Like described above... The library-Subsystem has some Constant-Blocks with fixed Parameter-Names to define Parameters by the Workspace. A second copy of the Library-Subsystem in the same Modell should get a different set of Parameters. How to do?

 採用された回答

Fangjun Jiang
Fangjun Jiang 2016 年 8 月 1 日
編集済み: Fangjun Jiang 2016 年 8 月 1 日

0 投票

You need to make that library-Subsystem a masked subsystem. Bring that parameter for the Constant block to the mask interface as a mask parameter. Then you can use the same library block multiple times with different parameter values.
See the document link:
web(fullfile(docroot, 'simulink/ug/mask-a-subsystem.html'))

1 件のコメント

Rene Melzer
Rene Melzer 2016 年 8 月 1 日
Ahh, okay. Thats a good advice, i think. Do you know some examples online?

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSubsystems についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by