Use From/Goto Block in different model file

9 ビュー (過去 30 日間)
Lucas S
Lucas S 2020 年 2 月 12 日
コメント済み: Lucas S 2020 年 3 月 4 日
Hello !
I would like to know if there is a way to store many inputs with Goto Blocks in one model file like this :
Capture.PNG
And use From Blocks in an another model file like this :
Capture2.PNG
The final goal is to use several From Blocks instead of duplicating inputs
Thank you !
  1 件のコメント
Ankit
Ankit 2020 年 3 月 3 日
do you mean exchanging informations between two simulink models?

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

採用された回答

Amit
Amit 2020 年 3 月 4 日
Goto and From blocks have a limited scope of visibility, which cannot cross over one model to another.
  • local (default) — From and Goto blocks that use the same tag must be in the same subsystem. A local tag name is enclosed in brackets ([]).
  • scoped From and Goto blocks that use the same tag must be in the same subsystem or at any level in the model hierarchy below the Goto Tag Visibility block that does not entail crossing a nonvirtual subsystem boundary, in other words, the boundary of an atomic, conditionally executed, or function-call subsystem or a model reference. A scoped tag name is enclosed in braces ({}).
  • global From and Goto blocks using the same tag can be anywhere in the model except in locations that span nonvirtual subsystem boundaries.
  2 件のコメント
Amit
Amit 2020 年 3 月 4 日
To avoid using many input ports, you can use bus instead to carry multiple inputs.
Lucas S
Lucas S 2020 年 3 月 4 日
Ok thank you ! i will check if a bus can be usefull in my situation

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by