<?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: Code Execution Measurement using Profiling Function Block</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-Execution-Measurement-using-Profiling-Function-Block/m-p/774999#M2095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Is it possible to get profiling report giving the details of code execution time for each function and number of time function called.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jan 2018 10:10:29 GMT</pubDate>
    <dc:creator>sindhujabala</dc:creator>
    <dc:date>2018-01-11T10:10:29Z</dc:date>
    <item>
      <title>Code Execution Measurement using Profiling Function Block</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-Execution-Measurement-using-Profiling-Function-Block/m-p/774997#M2093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to measure execution time for the model run in PIL Simulation mode using Profiler function block.&lt;/P&gt;&lt;P&gt;But I'm facing issue in checking the output in Freemaster tool V2.0. I have attached the sample model.&lt;/P&gt;&lt;P&gt;Kindly tell&amp;nbsp;how to fix the issue inorder to check&amp;nbsp;the output with Freemaster tool V2.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sindhuja Bala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 09:41:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-Execution-Measurement-using-Profiling-Function-Block/m-p/774997#M2093</guid>
      <dc:creator>sindhujabala</dc:creator>
      <dc:date>2018-01-10T09:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Code Execution Measurement using Profiling Function Block</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-Execution-Measurement-using-Profiling-Function-Block/m-p/774998#M2094</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/sindhujabala"&gt;sindhujabala&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wish to test the Processor-In-The-Loop execution time with the dedicated Profiler Function Simulink Block then you don't have to use the FreeMASTER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78iF8C109218B3047EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since PIL is a co-simulation between code that runs on Host PC and the code that runs on the actual HW, you could use the standard Simulink Scope to check the results - how much time the function needs to be executed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All you have to do is:&lt;/P&gt;&lt;P&gt;1: add the Profiling function block in your PIL model&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/168iF3535212CEA1ADF1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2: Configure the block to "Show Profile Output"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/204i6FD58C8CD6D067B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then all you need to do in your harness test is to plot that PIL Profiler output.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/169i684B42EF3C6693B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your particular model the result is shown below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/238iC68F1C215907054B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your model contained some mistakes which i have corrected, check the attachement. If you want to learn more about PIL please check this video:&amp;nbsp;&lt;A href="https://community.nxp.com/videos/7845"&gt; Video Link : 7845&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 14:11:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-Execution-Measurement-using-Profiling-Function-Block/m-p/774998#M2094</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2018-01-10T14:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Code Execution Measurement using Profiling Function Block</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-Execution-Measurement-using-Profiling-Function-Block/m-p/774999#M2095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Is it possible to get profiling report giving the details of code execution time for each function and number of time function called.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 10:10:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-Execution-Measurement-using-Profiling-Function-Block/m-p/774999#M2095</guid>
      <dc:creator>sindhujabala</dc:creator>
      <dc:date>2018-01-11T10:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Code Execution Measurement using Profiling Function Block</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-Execution-Measurement-using-Profiling-Function-Block/m-p/775000#M2096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you looking for this kind of report?&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/2615i7913F63619F3AD34/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;For the moment that is not possible on PIL nor actual hardware. That is a function provided by MATLAB but was not yet enabled on existing toolboxes.&amp;nbsp;For the PIL and actual HW application we can only show the actual execution cycles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nonetheless, you have a relative simple alternative: You could create subsystem for the functions you need to profile and add in each one a Profile Function. We can profile up to 100 function in a single run by changing the Profiler index.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2698iF16AE3296331D4B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 10:28:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-Execution-Measurement-using-Profiling-Function-Block/m-p/775000#M2096</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2018-01-11T10:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Code Execution Measurement using Profiling Function Block</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-Execution-Measurement-using-Profiling-Function-Block/m-p/775001#M2097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Code Execution Profile.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12097iFC7BA0B7E9C151FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Code Execution Profile.PNG" alt="Code Execution Profile.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm looking for code execution profile report like this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Profiling_Configuration setting.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12161i7B7DB76DA737CC6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Profiling_Configuration setting.PNG" alt="Profiling_Configuration setting.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;For collecting the Profiling data&amp;nbsp; there is an option in Code generation pane verification tab, Measure task execution time and Measure function execution times checkboxes has to be checked &lt;/SPAN&gt;. But I'm getting Model error when simulation done. I have tried with your sample model also.&lt;/P&gt;&lt;P&gt;Herewith attached the error screenshot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Model Simulation Error.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12323iBD54FA2FDACE73E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Model Simulation Error.PNG" alt="Model Simulation Error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kindly confirm the reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 05:08:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-Execution-Measurement-using-Profiling-Function-Block/m-p/775001#M2097</guid>
      <dc:creator>sindhujabala</dc:creator>
      <dc:date>2018-01-17T05:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Code Execution Measurement using Profiling Function Block</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-Execution-Measurement-using-Profiling-Function-Block/m-p/775002#M2098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sindhuja Bala,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did confirm that in the previous reply :-)&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;For the moment that is not possible on PIL nor actual hardware.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;For PIL/HW targets MATLAB provides an API that needs a HW timer implementation. In this case that API is left empty because we have not implemented yet that functionality. There are multiple issues in that regards especially when the timer overflows. We have done various tests and so far we did not found a reliable method to get timestamps from the real hardware. We are working with MATHWORKS team to find a resolution for such issues and hope we could enable such function in future releases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 06:51:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-Execution-Measurement-using-Profiling-Function-Block/m-p/775002#M2098</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2018-01-17T06:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Code Execution Measurement using Profiling Function Block</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-Execution-Measurement-using-Profiling-Function-Block/m-p/775003#M2099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;for your continuous support and detailed explanation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 06:56:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-Execution-Measurement-using-Profiling-Function-Block/m-p/775003#M2099</guid>
      <dc:creator>sindhujabala</dc:creator>
      <dc:date>2018-01-17T06:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Code Execution Measurement using Profiling Function Block</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-Execution-Measurement-using-Profiling-Function-Block/m-p/775004#M2100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for continuous support.&lt;/P&gt;&lt;P&gt;Do let us know if any know if any improvement or fixing done in Real hardware Execution Profiling in future.&lt;/P&gt;&lt;P&gt;We are looking forward to hear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sindhuja Bala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 07:05:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-Execution-Measurement-using-Profiling-Function-Block/m-p/775004#M2100</guid>
      <dc:creator>sindhujabala</dc:creator>
      <dc:date>2018-01-17T07:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Code Execution Measurement using Profiling Function Block</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-Execution-Measurement-using-Profiling-Function-Block/m-p/1651237#M8228</link>
      <description>&lt;P&gt;I am working with Matlab 2020b and NXP S32K144, I wanted to ask about the issue of the profiling with Mathworks for report generation of each function is it solved or not?&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 13:38:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-Execution-Measurement-using-Profiling-Function-Block/m-p/1651237#M8228</guid>
      <dc:creator>magedzik</dc:creator>
      <dc:date>2023-05-16T13:38:27Z</dc:date>
    </item>
  </channel>
</rss>

