<?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 Re: MBDT: ADC's 'setupresultbuffer' block in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-ADC-s-setupresultbuffer-block/m-p/1709187#M8433</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/221165"&gt;@avinashstarkenn&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Each example provided with our toolbox has a readme next to them that contains information about its functionality, the hardware and software settings that need to be done. You will find information about the expected results of the application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Simulink model C code&lt;SPAN&gt;&amp;nbsp;generated from the application can be viewed in the Embedded Coder menu, after pressing the View Code selection. Here you can find the C code generated by a specific block.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="georgevictor_1-1692714137164.png" style="width: 543px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237470iFA4E6858D6A72A3C/image-dimensions/543x293?v=v2" width="543" height="293" role="button" title="georgevictor_1-1692714137164.png" alt="georgevictor_1-1692714137164.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This code is cross-compiled and linked into an executable file for the microcontroller. Hence, the address&amp;nbsp;of the result buffer is a microcontroller address. You can use the FreeMASTER tool as in the&amp;nbsp;s32k3xx_adc_single_read_s32ct example to read the values from the&amp;nbsp;result buffer in real-time. Another method to see the values from the&amp;nbsp;result buffer is to import the application&amp;nbsp;in S32 Design Studio IDE and launch a debug session.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Victor&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 14:30:38 GMT</pubDate>
    <dc:creator>georgevictor</dc:creator>
    <dc:date>2023-08-22T14:30:38Z</dc:date>
    <item>
      <title>MBDT: ADC's 'setupresultbuffer' block</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-ADC-s-setupresultbuffer-block/m-p/1707495#M8425</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using MBDT for S32k3xx EVB.&lt;/P&gt;&lt;P&gt;What is exact functionality of ADC's 'setup result buffer' block?&lt;/P&gt;&lt;P&gt;I need to know following points about that-&lt;/P&gt;&lt;P&gt;1. What type of data it need and its data type? Please give an example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.Is it a address ?&lt;/P&gt;&lt;P&gt;3.How to give that data using data memory read?&amp;nbsp;&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="avinashstarkenn_0-1692355548938.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237057i537C8A270CB3D10B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="avinashstarkenn_0-1692355548938.png" alt="avinashstarkenn_0-1692355548938.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 10:46:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-ADC-s-setupresultbuffer-block/m-p/1707495#M8425</guid>
      <dc:creator>avinashstarkenn</dc:creator>
      <dc:date>2023-08-18T10:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: MBDT: ADC's 'setupresultbuffer' block</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-ADC-s-setupresultbuffer-block/m-p/1707605#M8426</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;A quick introduction about the MBDT workflow for S32K3xx:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The MBDT for S32K3xx generates code based on RTD (Real Time Drivers) MCAL components.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;To learn more about how to use and configure these components, open the block help from the block mask and look in the &lt;STRONG&gt;Function&lt;/STRONG&gt; section for your desired function:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="georgevictor_0-1692369754504.png" style="width: 543px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237095i0BF5C335029F3FEE/image-dimensions/543x205?v=v2" width="543" height="205" role="button" title="georgevictor_0-1692369754504.png" alt="georgevictor_0-1692369754504.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There you can find information about the block's inputs and outputs. In addition, the &lt;STRONG&gt;Code Generation&lt;/STRONG&gt; section of the block help contains a link to the component's RTD User Manual and, in some cases, a link to the AUTOSAR Specification if the component is AUTOSAR compliant. These documents contain information about the C functions that our toolbox blocks implement.&lt;/P&gt;
&lt;P&gt;Based on the RTD or AUTOSAR function specifications, you need to select the appropriate data type. You can check in our examples how to declare a data store memory like Adc0Group0_ResultBuffer. Double click on a data store memory and take a look in the Signal Attributes section.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="georgevictor_1-1692369754587.png" style="width: 537px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237096iA723F07003296240/image-dimensions/537x364?v=v2" width="537" height="364" role="button" title="georgevictor_1-1692369754587.png" alt="georgevictor_1-1692369754587.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the RTD or AUTOSAR documentation, the Adc_SetupResultBuffer function requires a pointer &amp;nbsp;with the address of the result data buffer. When you connect the data store memory to the Adc_SetupResultBuffer block, the address of the data store is automatically computed by our block and used in the generated code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Victor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 14:47:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-ADC-s-setupresultbuffer-block/m-p/1707605#M8426</guid>
      <dc:creator>georgevictor</dc:creator>
      <dc:date>2023-08-18T14:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: MBDT: ADC's 'setupresultbuffer' block</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-ADC-s-setupresultbuffer-block/m-p/1707984#M8427</link>
      <description>Can you please explain with an example? Can we view that data on Simulink after flashing or are you talking about address of microcontroller ?</description>
      <pubDate>Mon, 21 Aug 2023 04:58:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-ADC-s-setupresultbuffer-block/m-p/1707984#M8427</guid>
      <dc:creator>avinashstarkenn</dc:creator>
      <dc:date>2023-08-21T04:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: MBDT: ADC's 'setupresultbuffer' block</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-ADC-s-setupresultbuffer-block/m-p/1709187#M8433</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/221165"&gt;@avinashstarkenn&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Each example provided with our toolbox has a readme next to them that contains information about its functionality, the hardware and software settings that need to be done. You will find information about the expected results of the application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Simulink model C code&lt;SPAN&gt;&amp;nbsp;generated from the application can be viewed in the Embedded Coder menu, after pressing the View Code selection. Here you can find the C code generated by a specific block.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="georgevictor_1-1692714137164.png" style="width: 543px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237470iFA4E6858D6A72A3C/image-dimensions/543x293?v=v2" width="543" height="293" role="button" title="georgevictor_1-1692714137164.png" alt="georgevictor_1-1692714137164.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This code is cross-compiled and linked into an executable file for the microcontroller. Hence, the address&amp;nbsp;of the result buffer is a microcontroller address. You can use the FreeMASTER tool as in the&amp;nbsp;s32k3xx_adc_single_read_s32ct example to read the values from the&amp;nbsp;result buffer in real-time. Another method to see the values from the&amp;nbsp;result buffer is to import the application&amp;nbsp;in S32 Design Studio IDE and launch a debug session.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Victor&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 14:30:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-ADC-s-setupresultbuffer-block/m-p/1709187#M8433</guid>
      <dc:creator>georgevictor</dc:creator>
      <dc:date>2023-08-22T14:30:38Z</dc:date>
    </item>
  </channel>
</rss>

