<?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 Can't add any code with the consistency check script in the InitFcn callback in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Can-t-add-any-code-with-the-consistency-check-script-in-the/m-p/1288400#M6126</link>
    <description>&lt;P&gt;Hello I have a simple issue that I couldn't find any workaround for it. Any line of code I add to the InitFcn Callback - before or after - gets deleted once I simulate or generate code and just leaves behind the line "mbd_mpc_consistency_checks(bdroot(gcs));".&lt;/P&gt;&lt;P&gt;The line of code is simple as well, as shown in the screenshot below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 544px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146472i7DA30B4D18583275/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If anybody came across such thing that would be great help.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jun 2021 15:07:23 GMT</pubDate>
    <dc:creator>mazzinsherif</dc:creator>
    <dc:date>2021-06-07T15:07:23Z</dc:date>
    <item>
      <title>Can't add any code with the consistency check script in the InitFcn callback</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Can-t-add-any-code-with-the-consistency-check-script-in-the/m-p/1288400#M6126</link>
      <description>&lt;P&gt;Hello I have a simple issue that I couldn't find any workaround for it. Any line of code I add to the InitFcn Callback - before or after - gets deleted once I simulate or generate code and just leaves behind the line "mbd_mpc_consistency_checks(bdroot(gcs));".&lt;/P&gt;&lt;P&gt;The line of code is simple as well, as shown in the screenshot below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 544px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146472i7DA30B4D18583275/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If anybody came across such thing that would be great help.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 15:07:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Can-t-add-any-code-with-the-consistency-check-script-in-the/m-p/1288400#M6126</guid>
      <dc:creator>mazzinsherif</dc:creator>
      <dc:date>2021-06-07T15:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add any code with the consistency check script in the InitFcn callback</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Can-t-add-any-code-with-the-consistency-check-script-in-the/m-p/1294692#M6190</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/178273"&gt;@mazzinsherif&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Sorry for answering you so late. This is a behaviour we have noticed as well, and in order to avoid this, you have to replace the attached p file.&lt;/P&gt;
&lt;P&gt;To do so, please type in the matlab Command Window the following command:&lt;/P&gt;
&lt;P&gt;winopen(fullfile(mbd_find_mpc_root, 'mbdtbx_mpc','mscripts','config'))&lt;/P&gt;
&lt;P&gt;This will open Windows Explore, whre you have to replace the mbd_mpc_set_tmf.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Marius&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 12:19:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Can-t-add-any-code-with-the-consistency-check-script-in-the/m-p/1294692#M6190</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2021-06-18T12:19:41Z</dc:date>
    </item>
  </channel>
</rss>

