<?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: S32K396 Multi-channel ADC read group from example in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K396-Multi-channel-ADC-read-group-from-example/m-p/1943537#M9417</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/237986"&gt;@agus_idiada&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The settings you have done seem to be correct. Could you please let us know what is the name of the variable holding the group (containing 2 ADC channels) conversion results? If that is Channel0, please try and add in FreeMASTER both &lt;STRONG&gt;Channel0[0]&lt;/STRONG&gt; and &lt;STRONG&gt;Channel0[1]&lt;/STRONG&gt; to inspect their values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check &lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k344-Simulink-program-variable-issue-in-FreeMaster/m-p/1805316/highlight/true#M8837" target="_self"&gt;this thread&lt;/A&gt; as well for more details on how the Channel0 value can be easily added inside your FreeMASTER project.&lt;/P&gt;
&lt;P&gt;Please let us know if this helps or if further investigations are needed from our side.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Irina&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2024 14:27:26 GMT</pubDate>
    <dc:creator>Irina_Costachescu</dc:creator>
    <dc:date>2024-08-29T14:27:26Z</dc:date>
    <item>
      <title>S32K396 Multi-channel ADC read group from example</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K396-Multi-channel-ADC-read-group-from-example/m-p/1943472#M9415</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using S32K396-BGA-DC1 board, with Simulink in matlab2024a.&lt;BR /&gt;&lt;BR /&gt;I am trying to expand the example s"32k37x_s32k39x_adc_single_read_ebt" by adding a new channel for the group0 adc . After changing the .mex by adding the new channel and configuring it (see figure 1 &amp;amp; 2), I made the changes proposed also in [1] (image 3) but it does not work for me.&lt;/P&gt;&lt;P&gt;In freemaster I can only see this (Fig. 4).&lt;BR /&gt;&lt;BR /&gt;Is there something that I missed? How can I properly configured freemaster?&lt;BR /&gt;&lt;BR /&gt;Thanks, Agustin.&lt;BR /&gt;&lt;BR /&gt;[1] &lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K344-Multi-channel-ADC-read-group/td-p/1793347" target="_blank"&gt;https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K344-Multi-channel-ADC-read-group/td-p/1793347&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 13:02:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K396-Multi-channel-ADC-read-group-from-example/m-p/1943472#M9415</guid>
      <dc:creator>agus_idiada</dc:creator>
      <dc:date>2024-08-29T13:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: S32K396 Multi-channel ADC read group from example</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K396-Multi-channel-ADC-read-group-from-example/m-p/1943537#M9417</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/237986"&gt;@agus_idiada&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The settings you have done seem to be correct. Could you please let us know what is the name of the variable holding the group (containing 2 ADC channels) conversion results? If that is Channel0, please try and add in FreeMASTER both &lt;STRONG&gt;Channel0[0]&lt;/STRONG&gt; and &lt;STRONG&gt;Channel0[1]&lt;/STRONG&gt; to inspect their values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check &lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k344-Simulink-program-variable-issue-in-FreeMaster/m-p/1805316/highlight/true#M8837" target="_self"&gt;this thread&lt;/A&gt; as well for more details on how the Channel0 value can be easily added inside your FreeMASTER project.&lt;/P&gt;
&lt;P&gt;Please let us know if this helps or if further investigations are needed from our side.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Irina&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 14:27:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K396-Multi-channel-ADC-read-group-from-example/m-p/1943537#M9417</guid>
      <dc:creator>Irina_Costachescu</dc:creator>
      <dc:date>2024-08-29T14:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: S32K396 Multi-channel ADC read group from example</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K396-Multi-channel-ADC-read-group-from-example/m-p/1943605#M9419</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/100054"&gt;@Irina_Costachescu&lt;/a&gt; for your response. Unfortunately it is still not working.&lt;BR /&gt;&lt;BR /&gt;Maybe with the complete model other wrong configurations can be identified. Could you please check this?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 14:54:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K396-Multi-channel-ADC-read-group-from-example/m-p/1943605#M9419</guid>
      <dc:creator>agus_idiada</dc:creator>
      <dc:date>2024-08-29T14:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: S32K396 Multi-channel ADC read group from example</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K396-Multi-channel-ADC-read-group-from-example/m-p/1943648#M9420</link>
      <description>It is like when I configure a new volatile variable, displace the value or register in the freemaster and then, I read 0. Make that sense?</description>
      <pubDate>Thu, 29 Aug 2024 15:22:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K396-Multi-channel-ADC-read-group-from-example/m-p/1943648#M9420</guid>
      <dc:creator>agus_idiada</dc:creator>
      <dc:date>2024-08-29T15:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: S32K396 Multi-channel ADC read group from example</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K396-Multi-channel-ADC-read-group-from-example/m-p/1944202#M9424</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/237986"&gt;@agus_idiada&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for sharing your project with us. I have downloaded the archive that you have sent, and I have noticed that the .mex file associated with the model does not contain the additional Adc channel in the configuration it enables for this component. However, the &lt;STRONG&gt;S32K396-Q289-copy.mex&lt;/STRONG&gt; file contains the Adc group with 2 channels. Hence, can you please cleanup the folder where your model is placed, leaving only the slx file and try rebuilding the application?&lt;/P&gt;
&lt;P&gt;I also see that the &lt;STRONG&gt;S32K396-Q289-copy.mex&lt;/STRONG&gt; is specified as the Configuration Template inside the model's Configuration Parameters. Because of this, your local file will be brought next to the model and used throughout the build process.&lt;/P&gt;
&lt;P&gt;It seems that somehow, your configuration got overwritten with the default one the toolbox provides. For more details about &lt;STRONG&gt;default and custom configuration projects&lt;/STRONG&gt;, please check the following &lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Motor-Control-Errors-Example-Project-MBDT-S32K3/m-p/1532703/highlight/true#M7718" target="_self"&gt;link&lt;/A&gt;, as it provides a detailed explanation on these terms and how MBDT works with such configurations. To make sure that your model is using the right configuration project, click the &lt;STRONG&gt;Configure&lt;/STRONG&gt; button of any of the Simulink MBDT blocks present in your model. This action should open the S32CT and here you can check if the Adc is configured as required by your application.&lt;/P&gt;
&lt;P&gt;With the S32K396-Q289-copy.mex file, I have added both &lt;STRONG&gt;Channel0[0]&lt;/STRONG&gt; and &lt;STRONG&gt;Channel0[1]&lt;/STRONG&gt; inside the FreeMASTER project, obtaining the following results:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_1-1725000056145.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/296237i0ACF16A27F599853/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_1-1725000056145.png" alt="Irina_Costachescu_1-1725000056145.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let us know if this solves the issue you are currently encountering.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Irina&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 06:41:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K396-Multi-channel-ADC-read-group-from-example/m-p/1944202#M9424</guid>
      <dc:creator>Irina_Costachescu</dc:creator>
      <dc:date>2024-08-30T06:41:36Z</dc:date>
    </item>
  </channel>
</rss>

