In a Simulink library, how to flag a subsystem as a block and not a sublibrary?

5 ビュー (過去 30 日間)
Paul Wintz
Paul Wintz 2022 年 4 月 26 日
編集済み: Paul Wintz 2022 年 4 月 27 日
I am developing a Simulink library that includes several custom subsystem blocks. When I open the library in the Simulink Library Browser, then each subsystem is displayed as a sublibrary. As a concrete example, see the screenshot below. The Hybrid Equations Toolbox has a sublibrary called "Cyber Pysical Systems" and, within, are several subsystems "ADC", "FSM", etc. I want these to be displayed only as blocks within "Cyber Physical Systems" and not as sublibraries themselves. Users shouldn't, for example, see the "flow map f" block in the Library Browser (nor any of the other blocks inside "ADC"). How do I do this? We need the solution to be compatible from R2014b onwards.

採用された回答

Paul Wintz
Paul Wintz 2022 年 4 月 27 日
編集済み: Paul Wintz 2022 年 4 月 27 日
I've found that the following process causes the subsystem not to be shown as a sublibrary in the Library Browser.
  1. Select the subsystem, right-click and select Mask > Edit Mask (Ctrl + M)
  2. Open the Parameters & Dialogs tab
  3. Click one of the controls in the left column to add a control to the dialog.
  4. Click "Apply"
  5. Delete the added control.
  6. Click "OK" to close.
  7. Save the library.
  8. Open the Library Browser and refresh.
This doesn't seem like "correct" behavior, but it solves my problem.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMulticore Processor Targets についてさらに検索

製品


リリース

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by