{"id":576,"date":"2012-03-12T22:23:44","date_gmt":"2012-03-13T03:23:44","guid":{"rendered":"https:\/\/blogs.mathworks.com\/seth\/?p=576"},"modified":"2012-03-12T22:23:44","modified_gmt":"2012-03-13T03:23:44","slug":"legends-for-simulink-scopes","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/simulink\/2012\/03\/12\/legends-for-simulink-scopes\/","title":{"rendered":"Legends for Simulink Scopes"},"content":{"rendered":"<p>Today my colleague <a href=\"https:\/\/blogs.mathworks.com\/seth\/2011\/09\/14\/how-to-customize-the-simulink-scope-take-2\/\">Roshin Kadanna Pally<\/a> is back to talk about additions he made to the Simulink <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2012a\/toolbox\/simulink\/slref\/scope.html\">Scope<\/a> in R2012a.<\/p>\r\n\r\n<p><strong>Legends for Simulink Scopes<\/strong><\/p>\r\n\r\n<p>When opening the Scope parameters dialog in R2012a, you will notice a new option:<\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2012Q2\/ScopeParameters.png\" alt=\"Simulink Scope parameters\"><\/p>\r\n\r\n<p>When simulating the model, the legend will appear and you will be able to choose its position:<\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2012Q2\/ScopeLegendPosition.png\" alt=\"Setting the position of the Scope legend\"><\/p>\r\n\r\n<p>The selected position will be saved with model.<\/p>\r\n\r\n<p>The information displayed in the legend can come from multiple sources in the model:<\/p>\r\n\r\n<ul>\r\n\t<li>Signal name<\/li>\r\n\t<li>Block name if signal is not named<\/li>\r\n\t<li>Name of elements for composite signals<\/li>\r\n\t<li>Port number if source block has multiple ports<\/li>\r\n        <li>Signal index for vectors<\/li>\r\n<\/ul>\r\n\r\n<p>I tried to illustrate all those in the following example:<\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2012Q2\/ScopeLegendDetails.png\" alt=\"Scope Naming Convention\"><\/p>\r\n\r\n<p><strong>Now it's your turn<\/strong><\/p>\r\n\r\n<p>Are you happy the legends are now available in the Simulink Scope? Leave a <a href=\"https:\/\/blogs.mathworks.com\/seth\/?p=576&amp;#comment\">comment here<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Today my colleague Roshin Kadanna Pally is back to talk about additions he made to the Simulink Scope in R2012a.\r\n\r\nLegends for Simulink Scopes\r\n\r\nWhen opening the Scope parameters dialog in R2012a,... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/simulink\/2012\/03\/12\/legends-for-simulink-scopes\/\">read more >><\/a><\/p>","protected":false},"author":41,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[141],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/576"}],"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=576"}],"version-history":[{"count":15,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/576\/revisions"}],"predecessor-version":[{"id":627,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/576\/revisions\/627"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/media?parent=576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/categories?post=576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/tags?post=576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}