4

I'm starting on Simulink and just wondering if it is possible to connect two blocks without actually running an explicit connection line from port to port? Because with system getting larger, these connections create too much jumble and mess.

Like is it possible to give a name to some signal and use that name to specify output of one block, and the same name at input of destination block to show implied connection. Just as how its done in schematic building of for example SPICE tools. Or some other mechanism just to reduce the complexity of connections in model?

Thanks a lot for your time.

frank_010
  • 97
  • 1
  • 8
  • 2
    Yes, this is possible with the [*Goto*-block](http://ch.mathworks.com/help/simulink/slref/goto.html) and the corresponding [*From*-block](http://ch.mathworks.com/help/simulink/slref/from.html). – Matt Jul 07 '16 at 22:43
  • 1
    Thanks a lot. Precisely, what I was searching for! – frank_010 Jul 08 '16 at 00:18
  • 3
    Although Goto-From blocks can be used, their use is typically frowned upon as they can make it difficult to see the interconnections (and hence signal flow) between blocks. The preference is to use Buses to group multiple signals into one "line" (then feed that back) to reduce clutter. – Phil Goddard Jul 08 '16 at 02:17
  • Another method to reduce the ever growing complexity is to use subsystems to group parts of the model. This way you can reduce the amount of blocks in one layer and at the same time make the top-layers more abstract. As @PhilGoddard pointed out, the use of goto/from-blocks can make it very hard to see the signal flow as the model gets bigger. I personally only use it in seldom cases, for example when a connection would actually distract from the signal flow itself (i.e. connecting a *To Workspace*-block or *Scope* at the bottom of the model). – Matt Jul 08 '16 at 08:18

0 Answers0