Use From/Goto Block in different model file
조회 수: 9 (최근 30일)
이전 댓글 표시
Hello !
I would like to know if there is a way to store many inputs with Goto Blocks in one model file like this :
And use From Blocks in an another model file like this :
The final goal is to use several From Blocks instead of duplicating inputs
Thank you !
댓글 수: 1
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Composite Components에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!