Inport/Output ordering on subsystem reference in parent model

33 ビュー (過去 30 日間)
nmb
nmb 2024 年 11 月 4 日
回答済み: Swastik Sarkar 2024 年 11 月 11 日 7:51
I have a simple subsystem reference model that has 3 inputs and 2 outputs. When referencing the subsystem reference, it was realized that the ports can move within the parent model without affecting the subsystem reference (shown in the image attached). My question is this, is there a way to disallow changing the port order, such that the order would remain in the numbered order of the subsystem reference?

採用された回答

Swastik Sarkar
Swastik Sarkar 2024 年 11 月 11 日 7:51
Hi @nmb,
I have encountered a situation where ports can be easily rearranged by dragging, as described in the following documentation:
To prevent reordering in the subsystem reference, ports can be locked by marking Subsystem Reference as ReadOnly, a feature introduced in R2021b. More information about this feature is available here:
As shown in the figure, attempts to modify do not allow rearranging the port.

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by