<?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>Model-Based Design Toolbox (MBDT)のトピックRe: Outport affect to the CPU usage</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Outport-affect-to-the-CPU-usage/m-p/1620786#M8084</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/211146"&gt;@aslan_eyyup&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason why CPU usage drops from 0.15% to 0.002% is because Simulink Coder optimizes the generated code. In this matter, when in PIL mode, if you terminate the model inside the PIL subsystem, the code corresponding to your model will not be generated and so the CPU has nothing to execute.&lt;/P&gt;
&lt;P&gt;In the attached picture, you can see the differences between PIL subsystem generated code when using the output port and when using the terminator. When using the terminator, the code for the SOC Kalman Filter is not generated due to Simulink optimizations.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefancinipeanu_0-1679565990600.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/215978i43CF11A0D4DC7A04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefancinipeanu_0-1679565990600.png" alt="stefancinipeanu_0-1679565990600.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Stefan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 10:07:28 GMT</pubDate>
    <dc:creator>stefancinipeanu</dc:creator>
    <dc:date>2023-03-23T10:07:28Z</dc:date>
    <item>
      <title>Outport affect to the CPU usage</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Outport-affect-to-the-CPU-usage/m-p/1611731#M8053</link>
      <description>&lt;P&gt;&lt;SPAN&gt;For the simscape battery SOC estimation example, when using the outport for SOC monitoring in the PIL block with MPC5775E, the CPU usage is ~0.153%. But When I terminate it and don't monitor the SOC, CPU usage from PIL block becomes ~0.000208%. In this&amp;nbsp;case I am not sure if the algorithm&amp;nbsp;works without outport but I am wondering about your comments. Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aslan_eyyup_0-1678287848465.png" style="width: 246px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/213760i8E3F457ABC417064/image-dimensions/246x186?v=v2" width="246" height="186" role="button" title="aslan_eyyup_0-1678287848465.png" alt="aslan_eyyup_0-1678287848465.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aslan_eyyup_1-1678287884771.png" style="width: 196px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/213761i7502D39ACE26558B/image-dimensions/196x212?v=v2" width="196" height="212" role="button" title="aslan_eyyup_1-1678287884771.png" alt="aslan_eyyup_1-1678287884771.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 15:06:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Outport-affect-to-the-CPU-usage/m-p/1611731#M8053</guid>
      <dc:creator>aslan_eyyup</dc:creator>
      <dc:date>2023-03-08T15:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Outport affect to the CPU usage</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Outport-affect-to-the-CPU-usage/m-p/1620786#M8084</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/211146"&gt;@aslan_eyyup&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason why CPU usage drops from 0.15% to 0.002% is because Simulink Coder optimizes the generated code. In this matter, when in PIL mode, if you terminate the model inside the PIL subsystem, the code corresponding to your model will not be generated and so the CPU has nothing to execute.&lt;/P&gt;
&lt;P&gt;In the attached picture, you can see the differences between PIL subsystem generated code when using the output port and when using the terminator. When using the terminator, the code for the SOC Kalman Filter is not generated due to Simulink optimizations.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefancinipeanu_0-1679565990600.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/215978i43CF11A0D4DC7A04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefancinipeanu_0-1679565990600.png" alt="stefancinipeanu_0-1679565990600.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Stefan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 10:07:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Outport-affect-to-the-CPU-usage/m-p/1620786#M8084</guid>
      <dc:creator>stefancinipeanu</dc:creator>
      <dc:date>2023-03-23T10:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Outport affect to the CPU usage</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Outport-affect-to-the-CPU-usage/m-p/1621058#M8088</link>
      <description>&lt;P&gt;Thank you for the detailed explanation, this information will help to me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best wishes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 16:03:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Outport-affect-to-the-CPU-usage/m-p/1621058#M8088</guid>
      <dc:creator>aslan_eyyup</dc:creator>
      <dc:date>2023-03-23T16:03:09Z</dc:date>
    </item>
  </channel>
</rss>

