{"id":20,"date":"2008-06-25T10:00:58","date_gmt":"2008-06-25T15:00:58","guid":{"rendered":"https:\/\/blogs.mathworks.com\/seth\/2008\/06\/25\/community-favorite-accelerators\/"},"modified":"2017-01-04T13:44:19","modified_gmt":"2017-01-04T18:44:19","slug":"community-favorite-accelerators","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/simulink\/2008\/06\/25\/community-favorite-accelerators\/","title":{"rendered":"Community Favorite Accelerators"},"content":{"rendered":"<p>In a <a\r\nhref=\"https:\/\/blogs.mathworks.com\/seth\/2008\/05\/30\/tips-on-how-to-use-simulink-more-efficiently\/\">recent post<\/a>,\r\nI kicked off the discussion of Simulink workflow accelerators.  The <a\r\nhref=\"https:\/\/blogs.mathworks.com\/seth\/2008\/05\/30\/tips-on-how-to-use-simulink-more-efficiently\/#comments\">\r\ncomments for that post<\/a> were a great look at ways people work with Simulink. \r\nThe discussion reminded me of some tricks I had forgotten about, and I learned\r\nsome new ones.  Do you know what you can do with the left and right mouse\r\nbutton when you click together?   How about the Q key?<\/p>\r\n\r\n<p><strong>Viewing the model<\/strong><\/p>\r\n\r\n<p><em>Han Geerligs<\/em> shared that his biggest\r\naccelerator is \u201cusing mouse and keyboard in conjunction.\u201d  The example he gave\r\nwas using the Shift + mouse scroll wheel in order to pan horizontally.  Use the\r\nmouse scroll wheel alone to pan vertically. <\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2008Q2\/scrollWheelPan.gif\" alt=\"Using the scroll wheel to pan the diagram\"><\/p>\r\n\r\n<p><em>\r\nDan Lluch<\/em>\r\nwas nice enough to point out that \u201cthere are quite a few handy Simulink shortcut keys available\u201d <a\r\nhref=\"https:\/\/www.mathworks.com\/access\/helpdesk\/help\/toolbox\/simulink\/index.html?\/access\/helpdesk\/help\/toolbox\/simulink\/ug\/f2-82531.html\">\r\nlisted in the Doc<\/a>. He likes the P and Q key, as well as the space bar and F key.  If you\r\nuse the mouse with your right hand (like me) you can push Q with your left, then\r\nclick to drag the diagram view.  If you are a left-handed mouse user, the P key\r\nwill be more convenient.  The developer who designed this feature uses the\r\nmouse with his left hand.<\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2008Q2\/panWithMouse.gif\" alt=\"Pan the diagram with Q or P and the mouse\"><\/p>\r\n\r\n<p><strong>Editing the model<\/strong><\/p>\r\n\r\n<p><em>Phil Taylor<\/em> livened up the discussion by reminding\r\nus of how to \u201cdisconnect a block without deleting it or the lines that connect\r\nto it.\u201d  Hold shift before you select and drag a block, it will disconnect\r\nrather than dragging the lines with it. This also works for groups of blocks. <\/p>\r\n\r\n<p>Phil\r\nalso proposed a workflow for surgically snipping the complicated lines in our\r\ndiagram.  \u201cImagine you\u2019ve laid out a complicated connection path that feeds\r\ninto lots of blocks (subsystems, scopes, displays, etc.) and you want to insert\r\na block near the beginning of the path without deleting all the routing you\u2019ve\r\nalready laid down.\u201d  For single input, single output (SISO) blocks, this is as\r\neasy as just dropping the block on the line where you want to add the block. \r\nThis will automatically insert the block into the line.  If the block has\r\nmultiple inputs and outputs, Phil suggests using SISO blocks to break the line\r\nand then deleting those blocks to get the signals you want.<\/p>\r\n\r\n<p>I have reproduced this workflow with a little animation below.<\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2008Q2\/mimobreak1.gif\" alt=\"Phils technique for breaking multiple lines\"><\/p>\r\n\r\n<p><em>Devdatt Lad<\/em>, a developer at the MathWorks,\r\nreminded me that you can \u201cdisconnect a block from a line without deleting it by\r\nusing both mouse buttons simultaneously to select and drag it.\u201d<\/p>\r\n\r\n<p>Devdatt\r\nalso pointed out the right click option to align, distribute and resize blocks.<\/p>\r\n\r\n<p><img decoding=\"async\" border=\"2\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2008Q2\/distributeBlocks.gif\" alt=\"Using the right click options to align and distribute blocks\"><\/p>\r\n\r\n<p><strong>Now it\u2019s your turn<\/strong><\/p>\r\n\r\n<p>Are there other accelerators you use that we have not talked about here?  How do\r\nyou like the animated GIF files in this blog post?  Leave a <a href=\"https:\/\/blogs.mathworks.com\/seth\/?p=20&amp;#comment\">\r\ncomment here<\/a> and add to the conversation.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>In a recent post,\r\nI kicked off the discussion of Simulink workflow accelerators.  The \r\ncomments for that post were a great look at ways people work with Simulink. \r\nThe discussion reminded me of... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/simulink\/2008\/06\/25\/community-favorite-accelerators\/\">read more >><\/a><\/p>","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[34,30,33],"tags":[449,448,42],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/20"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":1,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":6221,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/20\/revisions\/6221"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}