Signal Routing with the From, Goto, and Goto Tag Visibility Blocks
This example shows how to use the From, Goto, and Goto Tag Visibility blocks to route signals in your model. The GotoGlobal block at the top-level of the model has theGoto tagparameter set toG
and theTag visibilityset toglobal
. Thus, theG
标签可以被在任何列弗和转向块el of the model hierarchy, except locations that span nonvirtual subsystem boundaries (like the Atomic Subsystem in this model). The From block at the top level of the model can see and connect to the globalG
tag, but cannot see or connect to the scopedS
tag orL
local tag that are specified on Goto blocks further down in the model hierarchy.
Inside of the Main Subsystem, the Goto block withGoto tagset toS
has aTag visibilityofscoped
. The Goto Tag Visibility block placed at the same level as that Goto block indicates theS
tag can be seen by all From and Goto blocks at that level and below, except for locations that cross a nonvirtual subsystem boundary (i.e. the boundary with the Atomic Subsystem). Inside of Subsystem1 and Subsystem2, the From blocks can see and connect to the global Goto tagG
, and the scoped Goto tagS
.