I recently worked on a Simulink model and used the Goto and From blocks to make the system very busy due to twisted wires. I was told that I should not use the Goto and From blocks, as they are considered bad style (at least according to my employer).
While I believe that wires should be connected whenever possible, I believe that the Goto and From blocks can significantly improve the readability of the system / subsystem if the model leads to a large number of cross wires otherwise; especially if the blocks can be color coded (for example, the purple Goto block goes to all the purple From blocks).
I would put the image of the subsystem with which I work, but I'm not sure that I can put it. The subsystem itself contains about 12 blocks of subsystems (and, possibly, later) inside them, each of which has two outputs on the bus. The first output of each subsystem goes to the Bus Creator block, and the second output of each goes to the second Bus Creator block. Since the subsystems are vertically aligned and the Bus Creator is to the right, this leads to many cross-wires. I used the Goto and From blocks to clean the system.
I can provide an image of a smaller but similar model that I put together for this question.
For a system with about 12 subsystems, it becomes very busy. I used the Goto and From blocks to connect the subsystems and Bus Creator without a lot of cross wires.
I believe that my employer can bear the stigma when using Goto operators from text languages ββand apply it to the Goto / From blocks in Simulink. Generally speaking, does Goto and From blocks in this way (or in any way) that are considered bad style?
source share