<?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: S32K344 Multi-channel ADC read group</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K344-Multi-channel-ADC-read-group/m-p/1851535#M8997</link>
    <description>&lt;P&gt;Hi, Irina&lt;/P&gt;&lt;P&gt;Thanks for your support. This solution solved the problem and I&amp;nbsp; can read all ADC channels' data in Simulink now.&lt;/P&gt;&lt;P&gt;However, it needs to be noted that the "Set ADC result buffer" module also needs an input of n*unit8 type data, which means we have to modify the related data store memory module if we copy them from the demo program, or we will get several result data of the same channel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regulus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2024 09:50:48 GMT</pubDate>
    <dc:creator>RegulusCheng</dc:creator>
    <dc:date>2024-04-22T09:50:48Z</dc:date>
    <item>
      <title>S32K344 Multi-channel ADC read group</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K344-Multi-channel-ADC-read-group/m-p/1793347#M8785</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using S32K344 in MCSPTE1AK344 board, with Simulink in matlab2021b.&lt;/P&gt;&lt;P&gt;I have configured 3 ADC channels in S32CT, three channels are all set into ADC1Group0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I found the "AdcGroupRead" Model can only output 1 dimension uint16 data, which only contain the first channel of the three. I wonder how to get all channels' data with this model? Or I must use other models?&lt;/P&gt;&lt;P&gt;I would be better if there are demos except those in MBDT tools.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards，&lt;/P&gt;&lt;P&gt;Regulus&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 02:00:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K344-Multi-channel-ADC-read-group/m-p/1793347#M8785</guid>
      <dc:creator>RegulusCheng</dc:creator>
      <dc:date>2024-01-23T02:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 Multi-channel ADC read group</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K344-Multi-channel-ADC-read-group/m-p/1841829#M8957</link>
      <description>&lt;P&gt;Hi there! Did you ever figure out how to access multiple channels within the same group using the MBDT?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 00:52:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K344-Multi-channel-ADC-read-group/m-p/1841829#M8957</guid>
      <dc:creator>LyingCake</dc:creator>
      <dc:date>2024-04-08T00:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 Multi-channel ADC read group</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K344-Multi-channel-ADC-read-group/m-p/1847276#M8977</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231603"&gt;@LyingCake&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are some known issues with the Adc functionalities for reading channels groups, fixed in the attached .zip file. Please download the attached archive and copy the contents&amp;nbsp;to their right locations inside the toolbox, as it follows:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;adc.tlc&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;adc.c&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&amp;lt;toolbox_root&amp;gt;/mbdtbx_s32k3/+mbd_s32k3/+common/blocks/adc&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;s32k3_adc.mexw64&lt;/STRONG&gt;&amp;nbsp; to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&amp;lt;toolbox_root&amp;gt;/mbdtbx_s32k3/blocks/adc&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Let us know if this helps,&lt;/P&gt;
&lt;P&gt;Irina&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 15:43:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K344-Multi-channel-ADC-read-group/m-p/1847276#M8977</guid>
      <dc:creator>Irina_Costachescu</dc:creator>
      <dc:date>2024-04-15T15:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 Multi-channel ADC read group</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K344-Multi-channel-ADC-read-group/m-p/1847287#M8978</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/100054"&gt;@Irina_Costachescu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;I have replaced the files as instructed. Can you please provide example usage of this fix?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LyingCake_0-1713197243977.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/273794iD6A4D27BB5FD306B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LyingCake_0-1713197243977.png" alt="LyingCake_0-1713197243977.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;LyingCake_0-1713197243977.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Using this fix, I am still not seeing individual channels for the 'Adc_ReadGroup' block. The above 'TEMP_MONITOR' group contains two ADC channels, however the output of the block is a single uint16.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 16:08:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K344-Multi-channel-ADC-read-group/m-p/1847287#M8978</guid>
      <dc:creator>LyingCake</dc:creator>
      <dc:date>2024-04-15T16:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 Multi-channel ADC read group</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K344-Multi-channel-ADC-read-group/m-p/1847334#M8980</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231603"&gt;@LyingCake&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output of the Simulink block represents the address where the converted data, of type uint16, will be stored. ADC results of all channels of the group selected in the block mask are stored in a buffer addressed with that pointer.&lt;/P&gt;
&lt;P&gt;For being able to store the data inside a variable, you could use a &lt;STRONG&gt;Data Store Memory&lt;/STRONG&gt; Simulink block, that, depending on the number of channels your group contains, can be declared with different sizes. For example, I have declared the variable &lt;STRONG&gt;Group0,&lt;/STRONG&gt; for the case in which&amp;nbsp;you have 2 channels, with its initial value set as illustrated below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_0-1713200634735.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/273801iDB7B325F18E27024/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_0-1713200634735.png" alt="Irina_Costachescu_0-1713200634735.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Irina_Costachescu_0-1713200634735.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then, inside the Simulink application, connect the block output to a Data Store Write block, for enabling the converted data to be stored inside the &lt;STRONG&gt;Group0&lt;/STRONG&gt; variable (the naming represents just an example).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_2-1713200750684.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/273804iA8B020846FEDCB92/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_2-1713200750684.png" alt="Irina_Costachescu_2-1713200750684.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Irina_Costachescu_2-1713200750684.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now, you should be able to access both values, corresponding to the two channels that your group contains, each of them being represented by &lt;STRONG&gt;Group0[0]&lt;/STRONG&gt; and &lt;STRONG&gt;Group0[1]&lt;/STRONG&gt; respectively. You could use FreeMASTER for inspecting the values corresponding to each channel.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_3-1713200974172.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/273805i8B51362C6C866EF0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_3-1713200974172.png" alt="Irina_Costachescu_3-1713200974172.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Irina_Costachescu_3-1713200974172.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Irina&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 17:10:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K344-Multi-channel-ADC-read-group/m-p/1847334#M8980</guid>
      <dc:creator>Irina_Costachescu</dc:creator>
      <dc:date>2024-04-15T17:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 Multi-channel ADC read group</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K344-Multi-channel-ADC-read-group/m-p/1851535#M8997</link>
      <description>&lt;P&gt;Hi, Irina&lt;/P&gt;&lt;P&gt;Thanks for your support. This solution solved the problem and I&amp;nbsp; can read all ADC channels' data in Simulink now.&lt;/P&gt;&lt;P&gt;However, it needs to be noted that the "Set ADC result buffer" module also needs an input of n*unit8 type data, which means we have to modify the related data store memory module if we copy them from the demo program, or we will get several result data of the same channel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regulus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 09:50:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K344-Multi-channel-ADC-read-group/m-p/1851535#M8997</guid>
      <dc:creator>RegulusCheng</dc:creator>
      <dc:date>2024-04-22T09:50:48Z</dc:date>
    </item>
  </channel>
</rss>

