<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Model Reference without adding &amp;quot;Target Configuration Block&amp;quot; in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Model-Reference-without-adding-quot-Target-Configuration-Block/m-p/942648#M3536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NXP MBDT Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using "&lt;A href="https://localhost:31515/static/help/templates/3pdoc.html?pagetype=doc&amp;amp;pageexists=true&amp;amp;helpdir=https%3A%2F%2Flocalhost%3A31515%2Fstatic%2Fhelp%2F3ptoolbox%2Fnxpsmodelbaseddesigntoolboxfors32k1xxtoolbox%2Fdoc&amp;amp;page=index.html&amp;amp;3pdocurl=true&amp;amp;exampledir=https%3A%2F%2Flocalhost%3A31515%2Fstatic%2Fhelp%2F3ptoolbox%2Fnxpsmodelbaseddesigntoolboxfors32k1xxtoolbox%2Fexample&amp;amp;examplepage=demos.xml&amp;amp;productlink=Product+page+at+mathworks.com&amp;amp;mfile=Script&amp;amp;mfiledesc=Published+MATLAB+script+or+function&amp;amp;model=Model&amp;amp;modeldesc=Simulink+model&amp;amp;video=Video&amp;amp;videodesc=Video+tutorial&amp;amp;mgui=GUI&amp;amp;mguidesc=GUI+program&amp;amp;uses=Uses%3A&amp;amp;languageDir=&amp;amp;matlabroot=C%3A%5CProgram+Files%5CMATLAB%5CR2019a&amp;amp;docroot=C%3A%2FProgram+Files%2FMATLAB%2FR2019a%2Fhelp&amp;amp;matlabres=https%3A%2F%2Flocalhost%3A31515%2Fstatic%2Fhelp%2F3ptoolbox" style="color: #004b87; background-color: transparent; text-decoration: none;"&gt;NXP's Model-Based Design Toolbox for S32K1xx Toolbox&lt;/A&gt;" version 4.1.0 with MATLAB R2019a.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my project, I am using model references (model within a model) to manage complexity. While generating code, using one of the example file (&lt;SPAN style="color: #000000; font-weight: normal; font-size: medium;"&gt;flexcan_s32k11x) without any modification, code generation works fine. When I add model reference (Convert &lt;SPAN&gt;flexcan_s32k11x&lt;/SPAN&gt;/Rx_Complete/Switch Case Action Subsystem ID 0x3FE/Chart in Model Reference), code generation gives following error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-weight: normal; font-size: medium; "&gt;Error: Index exceeds the number of array elements (0).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-weight: normal; font-size: medium; "&gt;After adding "MBD_S32K11x_Config_Information" block to model reference, error goes away. That makes me believe that it is much to add "MBD_S32K11x_Config_Information" block to each model reference at top level. However, in documentation, it suggests otherwise (it seems that adding this block to model is optional)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-weight: normal; font-size: medium; "&gt;If set System Target File Manually, above error comes back.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-weight: normal; font-size: medium; "&gt;In documentation:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;H2 style="background: #ffffff; border-width: 0px 0px 1px; border-bottom-style: solid; border-bottom-color: #d6d4d4; font-weight: bold; font-size: 1.2em; margin: 0px 0px 8px;"&gt;Block Miscellaneous Details:&lt;/H2&gt;&lt;UL style="background: #ffffff; border: 0px; font-weight: normal; font-size: 12px; margin: 0px 0px 20px 23px;"&gt;&lt;LI style="background: transparent; border: 0px; font-size: 12px; margin: 0px 0px 5px;"&gt;Required System Target File is set automatically by adding Target Configuration Block into the model. If no Target Configuration Block in the model then System Target File should be set manually.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion or workaround on how to avoid adding "Target Configuration Block"&amp;nbsp;to each model reference? Is it possible?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Chirag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Oct 2019 20:42:04 GMT</pubDate>
    <dc:creator>cpatel</dc:creator>
    <dc:date>2019-10-18T20:42:04Z</dc:date>
    <item>
      <title>Model Reference without adding "Target Configuration Block"</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Model-Reference-without-adding-quot-Target-Configuration-Block/m-p/942648#M3536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NXP MBDT Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using "&lt;A href="https://localhost:31515/static/help/templates/3pdoc.html?pagetype=doc&amp;amp;pageexists=true&amp;amp;helpdir=https%3A%2F%2Flocalhost%3A31515%2Fstatic%2Fhelp%2F3ptoolbox%2Fnxpsmodelbaseddesigntoolboxfors32k1xxtoolbox%2Fdoc&amp;amp;page=index.html&amp;amp;3pdocurl=true&amp;amp;exampledir=https%3A%2F%2Flocalhost%3A31515%2Fstatic%2Fhelp%2F3ptoolbox%2Fnxpsmodelbaseddesigntoolboxfors32k1xxtoolbox%2Fexample&amp;amp;examplepage=demos.xml&amp;amp;productlink=Product+page+at+mathworks.com&amp;amp;mfile=Script&amp;amp;mfiledesc=Published+MATLAB+script+or+function&amp;amp;model=Model&amp;amp;modeldesc=Simulink+model&amp;amp;video=Video&amp;amp;videodesc=Video+tutorial&amp;amp;mgui=GUI&amp;amp;mguidesc=GUI+program&amp;amp;uses=Uses%3A&amp;amp;languageDir=&amp;amp;matlabroot=C%3A%5CProgram+Files%5CMATLAB%5CR2019a&amp;amp;docroot=C%3A%2FProgram+Files%2FMATLAB%2FR2019a%2Fhelp&amp;amp;matlabres=https%3A%2F%2Flocalhost%3A31515%2Fstatic%2Fhelp%2F3ptoolbox" style="color: #004b87; background-color: transparent; text-decoration: none;"&gt;NXP's Model-Based Design Toolbox for S32K1xx Toolbox&lt;/A&gt;" version 4.1.0 with MATLAB R2019a.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my project, I am using model references (model within a model) to manage complexity. While generating code, using one of the example file (&lt;SPAN style="color: #000000; font-weight: normal; font-size: medium;"&gt;flexcan_s32k11x) without any modification, code generation works fine. When I add model reference (Convert &lt;SPAN&gt;flexcan_s32k11x&lt;/SPAN&gt;/Rx_Complete/Switch Case Action Subsystem ID 0x3FE/Chart in Model Reference), code generation gives following error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-weight: normal; font-size: medium; "&gt;Error: Index exceeds the number of array elements (0).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-weight: normal; font-size: medium; "&gt;After adding "MBD_S32K11x_Config_Information" block to model reference, error goes away. That makes me believe that it is much to add "MBD_S32K11x_Config_Information" block to each model reference at top level. However, in documentation, it suggests otherwise (it seems that adding this block to model is optional)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-weight: normal; font-size: medium; "&gt;If set System Target File Manually, above error comes back.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-weight: normal; font-size: medium; "&gt;In documentation:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;H2 style="background: #ffffff; border-width: 0px 0px 1px; border-bottom-style: solid; border-bottom-color: #d6d4d4; font-weight: bold; font-size: 1.2em; margin: 0px 0px 8px;"&gt;Block Miscellaneous Details:&lt;/H2&gt;&lt;UL style="background: #ffffff; border: 0px; font-weight: normal; font-size: 12px; margin: 0px 0px 20px 23px;"&gt;&lt;LI style="background: transparent; border: 0px; font-size: 12px; margin: 0px 0px 5px;"&gt;Required System Target File is set automatically by adding Target Configuration Block into the model. If no Target Configuration Block in the model then System Target File should be set manually.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion or workaround on how to avoid adding "Target Configuration Block"&amp;nbsp;to each model reference? Is it possible?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Chirag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2019 20:42:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Model-Reference-without-adding-quot-Target-Configuration-Block/m-p/942648#M3536</guid>
      <dc:creator>cpatel</dc:creator>
      <dc:date>2019-10-18T20:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Model Reference without adding "Target Configuration Block"</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Model-Reference-without-adding-quot-Target-Configuration-Block/m-p/942649#M3537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/cpatel@mathworks.com"&gt;cpatel@mathworks.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Config block must be added in all the referenced models. Besides the .tlc file, there are other changes that the Config block performs on the model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to change something in the Config Block, just change in the main model and just press the "Propagate configuration" button. It will automatically apply the changes to all Config Blocks from the referenced models.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92983i6C80C613D1FE007F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2019 08:09:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Model-Reference-without-adding-quot-Target-Configuration-Block/m-p/942649#M3537</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2019-10-21T08:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Model Reference without adding "Target Configuration Block"</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Model-Reference-without-adding-quot-Target-Configuration-Block/m-p/942650#M3538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mariuslucianandrei"&gt;mariuslucianandrei&lt;/A&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I double click on "Propagate Configuration" as you mentioned above, it also changes some of the model configuration parameters. For example, it changes support for non-finite numbers and complex numbers, among other things. This is reproducible everytime.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to avoid this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, with Model References, it is recommended to use Configuration References. "Propagate Configuration" doesn't work in that case.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/93056iCA528CDA8D921BAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2019 17:45:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Model-Reference-without-adding-quot-Target-Configuration-Block/m-p/942650#M3538</guid>
      <dc:creator>cpatel</dc:creator>
      <dc:date>2019-10-22T17:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Model Reference without adding "Target Configuration Block"</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Model-Reference-without-adding-quot-Target-Configuration-Block/m-p/942651#M3539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/cpatel@mathworks.com"&gt;cpatel@mathworks.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for reporting this behaviour.&amp;nbsp;This might be caused by one of our callbacks. I have attached a file that must be replaced under &lt;EM&gt;{src\mbdtbx_s32k\mscripts\model}.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please replace it and test the "Propagate Configuration" button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2019 13:55:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Model-Reference-without-adding-quot-Target-Configuration-Block/m-p/942651#M3539</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2019-10-24T13:55:39Z</dc:date>
    </item>
  </channel>
</rss>

