Main Content

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 toGand 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 globalGtag, but cannot see or connect to the scopedStag orLlocal tag that are specified on Goto blocks further down in the model hierarchy.

Inside of the Main Subsystem, the Goto block withGoto tagset toShas aTag visibilityofscoped. The Goto Tag Visibility block placed at the same level as that Goto block indicates theStag 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.