Use From/Goto Block in different model file
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/271158/Capture.png)
And use From Blocks in an another model file like this :
![Capture2.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/271159/Capture2.png)
The final goal is to use several From Blocks instead of duplicating inputs
Thank you !
1 Kommentar
Akzeptierte Antwort
Amit
am 4 Mär. 2020
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 Kommentare
Amit
am 4 Mär. 2020
To avoid using many input ports, you can use bus instead to carry multiple inputs.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Schedule Model Components finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!