{"id":4775,"date":"2015-09-29T02:59:56","date_gmt":"2015-09-29T07:59:56","guid":{"rendered":"https:\/\/blogs.mathworks.com\/seth\/?p=4775"},"modified":"2017-01-04T16:10:07","modified_gmt":"2017-01-04T21:10:07","slug":"whats-new-in-r2015b-part-3","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/simulink\/2015\/09\/29\/whats-new-in-r2015b-part-3\/","title":{"rendered":"What&#8217;s New in R2015b &#8211; Part 3"},"content":{"rendered":"<p>In R2015b, lots of enhancements related to buses have been implemented. Let's give a look.<\/p>\r\n\r\n<p><strong>Port Value Labels for buses<\/strong><\/p>\r\n\r\n<p>When debugging models, I sometimes like to use the <a href=\"https:\/\/www.mathworks.com\/help\/simulink\/ug\/displaying-block-outputs.html\">Port Values Display<\/a>. I am happy to see that it now works also with buses, including the possibility to display a subset of the bus elements.<\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2015Q3\/portValueDisplay.png\" alt=\"Port Value Display for buses\" \/><\/p>\r\n\r\n<p><strong>Array of Buses Parameters<\/strong><\/p>\r\n\r\n<p>Up to now, if you wanted to specify an array of buses as parameter to a Simulink block (For example as initial value of a Unit Delay block, or in a Constant Block), you could only specify a structure that would be duplicated for the elements of the array.<\/p>\r\n\r\n<p>In R2015b, you can now specify a full array of structures. Simply create the array, the corresponding bus object, specifying those in your block, and you are good to go:<\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2015Q3\/busArray.png\" alt=\"Array of Buses Parameters\" \/><\/p>\r\n\r\n<p>This feature becomes especially useful if you want to iterate on structure parameters inside a For Each Subsystem. Pass your array of structure as a mask parameter to the For Each Subsystem. Inside, use it as if it was just a structure, and enable the parameter partitioning.<\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2015Q3\/ForIterator.png\" alt=\"Array of Buses Parameters in For Iterator\" \/><\/p>\r\n\r\n\r\n<p><strong>Bus Assignment Block can Assign Sub-Buses<\/strong><\/p>\r\n\r\n<p>Up to now, the Bus Assignment block could only reassign individual elements one by one. In this release, it is now possible to reassign entire sub-buses. For large complex buses, this can make your model easier to read and maintain.<\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2015Q3\/busAssignment.png\" alt=\"Bus Assignment Block can Assign Sub-Buses\" \/><\/p>\r\n\r\n<p><strong>Bus Support in MATLAB System block<\/strong><\/p>\r\n\r\n<p>Finally, bus support has been added to the MATLAB System block. It is pretty simple to use. Create a parameter to specify the bus object, specify it as output data type.<\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2015Q3\/busMLSysBlk.png\" alt=\"Bus Support in MATLAB System block\" \/><\/p>\r\n\r\n<p><strong>Now it's your turn<\/strong><\/p>\r\n\r\n<p>Let us know what you think of those bus enhancements by leaving a comment here.<\/p>","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img decoding=\"async\"  class=\"img-responsive\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2015Q3\/busMLSysBlk.png\" onError=\"this.style.display ='none';\" \/><\/div><p>In R2015b, lots of enhancements related to buses have been implemented. Let's give a look.\r\n\r\nPort Value Labels for buses\r\n\r\nWhen debugging models, I sometimes like to use the Port Values Display. I... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/simulink\/2015\/09\/29\/whats-new-in-r2015b-part-3\/\">read more >><\/a><\/p>","protected":false},"author":41,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11,16],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/4775"}],"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\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/comments?post=4775"}],"version-history":[{"count":8,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/4775\/revisions"}],"predecessor-version":[{"id":6282,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/4775\/revisions\/6282"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/media?parent=4775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/categories?post=4775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/tags?post=4775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}