{"id":428,"date":"2017-07-31T11:28:49","date_gmt":"2017-07-31T18:28:49","guid":{"rendered":"https:\/\/blogs.plm.automation.siemens.com\/t5\/Polarion-Blog\/Extensions-update-Polarion-Connector-for-Mathworks-Simulink\/ba-p\/424085"},"modified":"2026-03-26T05:28:02","modified_gmt":"2026-03-26T09:28:02","slug":"extensions-update-polarion-connector-for-mathworks-simulink","status":"publish","type":"post","link":"https:\/\/blogs.sw.siemens.com\/polarion\/extensions-update-polarion-connector-for-mathworks-simulink\/","title":{"rendered":"Extensions update: Polarion Connector for Mathworks Simulink"},"content":{"rendered":"<p><P>I\u2019m pleased to announce an updated version of the Polarion Connector for Mathworks Simulink, available for download <a href=\"http:\/\/extensions.polarion.com\/extensions\/173-polarion-connector-for-simulink\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">here<\/A> on the Polarion extension site.<\/P><\/p>\n<p><P>Version 2.0 of the Polarion connector for Simulink provides a framework to extend the core functionality by allowing users to write simple custom code. There are 2 types of extension possible:<\/P><br \/>\n<UL><br \/>\n<LI>Register additional menu items which will appear in the Polarion context menu found on diagram items.<\/LI><br \/>\n<LI>&nbsp;Add functionality to <EM>select<\/EM> or <EM>publish<\/EM> actions of the Connector.<\/LI><br \/>\n<\/UL><br \/>\n<P>To showcase this new functionality, an example of an extended function that supports populating the Mathworks Simulink Link Editor \u201c<EM>User tag<\/EM>\u201d field with Polarion work item standard and custom fields is included.<\/P><\/p>\n<p><P>Let\u2019s look into more detail of how this works:<\/P><br \/>\n<P>The installation directory includes an <EM>Extension.m<\/EM> example file that extends the functionality of the connector to support populating the Simulink link editor <EM>User tag<\/EM> field with Polarion Work Item fields. This is useful for users working inside of Simulink to better understand specific information about the Polarion Work Item to which the model element is linked.<\/P><\/p>\n<p><P><STRONG>Setup<\/STRONG>:<\/P><br \/>\n<P>First, you need to decide which Polarion work item fields you want to export to Mathworks. The fields supported are id, title, type, severity, and any custom fields of type String, Enum, or multi-Enum.<\/P><br \/>\n<P>Let\u2019s choose the following custom fields and normal fields, id and type.<\/P><\/p>\n<p><P><span class=\"lia-inline-image-display-wrapper lia-image-align-center\" style=\"width: 775px;\"><img decoding=\"async\" src=\"http:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/4\/2019\/09\/02-sw-custom-fields-1.png\" alt=\"02-sw-custom-fields.png\" title=\"02-sw-custom-fields.png\" \/><\/span><\/P><br \/>\n<P>&nbsp;Open up the <EM>Extension.m<\/EM> file in your favorite editor and edit line 58 that specifies which work item fields you would like to export to Simulink.<\/P><\/p>\n<p><PRE>% method, where list of extractable field ids is listed &#8211; use semicolon as separator<br \/>\n    function fieldNames = polarionWIFieldList<br \/>\n        fieldNames = {&#8216;id&#8217;; &#8216;type&#8217;; &#8216;custom1&#8217;; &#8216;custom2&#8217;; &#8216;custom3&#8217;};<br \/>\n    end<br \/>\n<\/PRE><\/p>\n<p><P>&nbsp;Once a Simulink model element is linked to a Polarion Work item, when you now open the Mathworks RMI Link Editor, you will see the <EM>User Tag<\/EM> field populated with Polarion Work Item field data.<\/P><\/p>\n<p><P><span class=\"lia-inline-image-display-wrapper lia-image-align-center\" style=\"width: 945px;\"><img decoding=\"async\" src=\"http:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/4\/2019\/09\/03-user-tag-field-1.png\" alt=\"03-user-tag-field.png\" title=\"03-user-tag-field.png\" \/><\/span><\/P><\/p>\n<p><P>As the above figure shows, the <EM>User tag<\/EM> field displays the custom fields from Polarion ALM: <STRONG>ID: SIMU-89; Type: SW Change Request; Custom 1: Test; Custom 2: Carl User,Mark Test; Custom 3: Private<\/STRONG><\/P><\/p>\n<p><P>.. and it\u2019s as simple as that. For more information concerning these updates, please check out the documentation that is provided with the Polarion connector for Mathworks Simulink.<\/P><\/p>\n<p><P>The new version of the Polarion connector for Mathworks Simulink is available for free from the Polarion extension portal <a href=\"http:\/\/extensions.polarion.com\/extensions\/173-polarion-connector-for-simulink\" target=\"_self\" rel=\"nofollow noopener noreferrer\">here<\/A>.<\/P><\/p>\n<p><P><STRONG>Happy customizing!<\/STRONG><\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I\u2019m pleased to announce an updated version of the Polarion Connector for Mathworks Simulink, available for download here on the Polarion extension site. <\/p>\n<p> Version 2.0 of the Polarion connect&#8230;<\/p>\n","protected":false},"author":28546,"featured_media":435,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spanish_translation":"","french_translation":"","german_translation":"","italian_translation":"","polish_translation":"","japanese_translation":"","chinese_translation":"","footnotes":""},"categories":[1],"tags":[],"industry":[],"product":[],"coauthors":[],"class_list":["post-428","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"featured_image_url":"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/4\/2019\/09\/03-user-tag-field-1.png","_links":{"self":[{"href":"https:\/\/blogs.sw.siemens.com\/polarion\/wp-json\/wp\/v2\/posts\/428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.sw.siemens.com\/polarion\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.sw.siemens.com\/polarion\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/polarion\/wp-json\/wp\/v2\/users\/28546"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/polarion\/wp-json\/wp\/v2\/comments?post=428"}],"version-history":[{"count":3,"href":"https:\/\/blogs.sw.siemens.com\/polarion\/wp-json\/wp\/v2\/posts\/428\/revisions"}],"predecessor-version":[{"id":436,"href":"https:\/\/blogs.sw.siemens.com\/polarion\/wp-json\/wp\/v2\/posts\/428\/revisions\/436"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/polarion\/wp-json\/wp\/v2\/media\/435"}],"wp:attachment":[{"href":"https:\/\/blogs.sw.siemens.com\/polarion\/wp-json\/wp\/v2\/media?parent=428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/polarion\/wp-json\/wp\/v2\/categories?post=428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/polarion\/wp-json\/wp\/v2\/tags?post=428"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/polarion\/wp-json\/wp\/v2\/industry?post=428"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/polarion\/wp-json\/wp\/v2\/product?post=428"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/polarion\/wp-json\/wp\/v2\/coauthors?post=428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}