フィルターのクリア

Is there a way in Simulink to automatically duplicate the same subsystem any number of times?

6 ビュー (過去 30 日間)
Jonathan
Jonathan 2014 年 5 月 9 日
コメント済み: Jonathan 2014 年 5 月 9 日
Hi,
I have a subsystem which I need to duplicate several times in the same model. The trouble is that the number of those subsystems needed is not fixed but depends on the parameters provided by the user. So I can't manually paste it, I need the model to be able to call the subsystem as many times as is needed. Can someone point me in the right direction to do that?
Thanks

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 5 月 9 日
Put your subsystem in a library file, then use add_bloc to add your subsystem to your model
  1 件のコメント
Jonathan
Jonathan 2014 年 5 月 9 日
I just looked into the add_bloc command, it doesn't seem easy to handle. How do you manage the inputs and outputs of the blocs you add?
Wouldn't it be simpler to use a for iterator instead?

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

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by