{"id":54,"date":"2009-04-29T14:00:07","date_gmt":"2009-04-29T14:00:07","guid":{"rendered":"https:\/\/blogs.mathworks.com\/seth\/2009\/04\/29\/pick-of-the-week-customizing-simulink\/"},"modified":"2016-12-20T19:13:11","modified_gmt":"2016-12-21T00:13:11","slug":"pick-of-the-week-customizing-simulink","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/simulink\/2009\/04\/29\/pick-of-the-week-customizing-simulink\/","title":{"rendered":"Pick of the week: Customizing Simulink"},"content":{"rendered":"<p>This week I am borrowing the <a href=\"https:\/\/blogs.mathworks.com\/pick\/\">Pick of the Week<\/a> blog format pioneered by Scott\r\nand Doug and carried on by the\r\nthree amigos: Bob, Brett\r\nand Jiro.<\/p>\r\n\r\n<p><strong>Simulink Pick of the Week<\/strong><\/p>\r\n\r\n<p>Seth\u2019s pick this week is <a\r\nhref=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/23943-customizing-the-simulink-interface-demo\">Customizing\r\nthe Simulink Interface Demo<\/a> by <a\r\nhref=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/30904\">Saurabh\r\nMahapatra<\/a><\/p>\r\n\r\n<p>While browsing through the <a\r\nhref=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/\">file exchange<\/a>,\r\nI clicked on the <a\r\nhref=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/?term=tag%3A%22simulink%22\">Simulink\r\ntag<\/a> to see the latest Simulink files.\u00a0 Saurabh\u2019s demo of how to customize\r\nthe Simulink interface was right at the top.\u00a0 You can really appreciate what is\r\nin this submission without even downloading it.\u00a0 The ZIP file contains a published\r\nM-file that documents and explains each customization in detail. (<em>Everyone\r\nshould do this!<\/em>)<\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2009Q2\/customizingPick.png\" alt=\"Customizing the Simulink Interface Demo on the MATLAB Central File Exhcange\"><\/p>\r\n\r\n<p>Saurabh explains how to make a few key customizations to\r\nthe Simulink interface.<\/p>\r\n\r\n<p><strong>Reordering Libraries in Simulink Library Browser.<\/strong><\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2009Q2\/sl_custom_demo_02_modified.png\" alt=\"Reordered libraries in the Simulink library browser\"><\/p>\r\n\r\n<p>If you don\u2019t like the default order of libraries\r\n(alphabetical, with Simulink always on top), you can reorder them.\u00a0 This is\r\nparticularly helpful if you use a pallet library to keep you custom blocks on\r\nhand.\u00a0 (I have previously blogged about <a\r\nhref=\"https:\/\/blogs.mathworks.com\/seth\/2008\/03\/18\/a-historical-tour-of-the-library-browser\/\">adding\r\ncustom libraries<\/a>.)<\/p>\r\n\r\n<p><strong>Disabling and Hiding Libraries in Simulink Library\r\nBrowser.<\/strong><\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2009Q2\/sl_custom_demo_03_modified.png\" alt=\"Hidden libraries and disabled libraries in Simulink\"><\/p>\r\n\r\n<p>Why would you ever want to do this?\u00a0 Well, I most often hear\r\nthe request from larger teams that need to restrict the blocks allowed in their\r\ndesign.\u00a0 If your team doesn\u2019t allow continuous blocks in their controller\r\nmodel, it might be easier to keep them out of sight and prevent their insertion\r\nfrom the start.<\/p>\r\n\r\n<p><strong>Customizing Simulink Menus.<\/strong><\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2009Q2\/sl_custom_demo_04_modified.png\" alt=\"Custom menus added to Simulink\"><\/p>\r\n\r\n<p>The example here is very simple, but I have used this one\r\nmyself.\u00a0 I made a custom menu that would generate a bus object for the\r\ncurrently selected port or bus creator.\u00a0 This saved me the time of having to\r\ntype <tt><span style='font-size:10.0pt;line-height:115%'>Simulink.Bus.createObject(<span\r\nstyle='color:#A020F0'>'model'<\/span>, <span style='color:#A020F0'>'model\/Bus\r\nCreator'<\/span>)<\/span><\/tt>.<\/p>\r\n\r\n<p><strong>Disabling and Hiding Options in Configuration Parameters\r\nDialog.<\/strong><\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2009Q2\/sl_custom_demo_07_modified.png\" alt=\"Disabling and hiding stuff in the configuration prarameters\"><\/p>\r\n\r\n<p>Just about every menu and configuration parameter can be\r\nenabled\/disabled and hidden.\u00a0 This flexibility helps when enforcing team\r\nmodeling styles and preventing common errors because of mistaken settings.<\/p>\r\n\r\n<p><strong>Now it\u2019s your turn<\/strong><\/p>\r\n\r\n<p>I hope you will <a\r\nhref=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/23943-customizing-the-simulink-interface-demo\">download the\r\nfile<\/a>, rate it, and leave comments.\u00a0 How do you use customizations?\u00a0 Leave\r\nme a <a href=\"https:\/\/blogs.mathworks.com\/seth\/?p=54&amp;#comment\">comment here<\/a>,\r\nor submit your own customizations to the file exchange!<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>This week I am borrowing the Pick of the Week blog format pioneered by Scott\r\nand Doug and carried on by the\r\nthree amigos: Bob, Brett\r\nand Jiro.\r\n\r\nSimulink Pick of the Week\r\n\r\nSeth\u2019s pick this week... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/simulink\/2009\/04\/29\/pick-of-the-week-customizing-simulink\/\">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,8,33,16],"tags":[88,441],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/54"}],"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=54"}],"version-history":[{"count":2,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/54\/revisions"}],"predecessor-version":[{"id":6128,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/54\/revisions\/6128"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/media?parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/categories?post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/tags?post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}