This week guest blogger Michael Carone is here to talk about improvements to signal routing in Simulink R2012b.
Smart Signal Routing
Has this ever happened to you: You have two blocks that you connect together and the signal line doesn’t show up where you want it to go? It overlaps a block or some text in the model, and then you have to move sections of the signal around in order to get it just right. It can get pretty frustrating – you start thinking “Why do I have to spend all this time fiddling around with signal lines just to make my model look good? Simulink should do this automatically!”
Line routing with an optimal path
Well, I have good news! The new Simulink Editor in R2012b does a much better job of drawing signal lines with one of my favorite new features, smart signal routing. What’s smart signal routing? Basically, it means that when you draw a signal line, Simulink will automatically find the “optimal path” so that the new signal line is as short as possible, has minimal 90 degree turns, and doesn’t overlap other blocks and text. Not only that, as you draw the signal line, Simulink lets you know exactly what the path is going to look like before you release the mouse button. So there are no surprises! (in this case, that’s a good thing).
Drawing custom paths
You might be thinking, “Automatic signal line? What if I want to create my own signal line paths?” The good thing is that there’s a new way to create your own custom signal line path too. Here’s how it works: Draw a signal line like you normally would. Then release the mouse button when you want to create a bend in the line. You’ll see three blue arrows appear: one to keep going straight and two to make a left or right turn. Choose the arrow that you want and repeat until you’ve created your own signal path. Here’s a little video to show how this works:
Now what’s neat about this new signal line is that it won’t get blown away if you move some blocks around as you continue building up the model. Part of the smartness of the smart signal routing algorithm is to know when to leave a signal alone. It’s what we call “minimum disturbance.” In other words, the signal lines that already exist will be disturbed as little as possible as you move blocks around. Here’s another clip to show how this works:
Smart signal routing is just one of the many features added to the new Simulink Editor to make modeling easier.
Now it's your turn
Have you tried out the new Simulink Editor yet? What do you think of the new smart signal routing algorithm? Let us know by leaving a comment here!
댓글을 남기려면 링크 를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.