Duplicating a subsystem within simulink

Hi
Sorry - I'm very new to simulink (we got asked to do a project and I got thrown onto it; I've never used the program before firing it up today) and I am trying to model something that is a very repetative cascaded structure. I obviously don't want to have a flat view of everything where all the instances are unique and visible at the high level, so I created a subsystem. I then dupilcated the subsystem and cascaded that, working my way up to the number of cascaded units I wanted. The question I had though, was it appears as though each of the "copies" of the subsystems I created are self contained unique subsystems, not a duplicate reference to the same sub system so if I want to modify something once, I actually have to do it n times within each of the copies of the subsystem. Obviously I don't want to do that; is there a better way to copy/dupilcate things where I can force it all to reference the same underlying subsystem?
Thanks
Chris

 採用された回答

Ameer Hamza
Ameer Hamza 2020 年 11 月 11 日

0 投票

For that, you will need to create a custom-Simulink library and add your block to that library. Then in your current model, insert that block from the library browser. If you make any change to the library block, it will be reflected to add blocks in your current model: https://www.mathworks.com/help/simulink/ug/creating-block-libraries.html

1 件のコメント

Christopher Chock
Christopher Chock 2020 年 11 月 11 日
Hi Ameer
Thanks - seems a little clunky but works.

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

その他の回答 (0 件)

カテゴリ

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

製品

リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by