<?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 Problem with my project in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Problem-with-my-project/m-p/2326851#M10666</link>
    <description>&lt;P&gt;First of all, I apologize for the intrusion. I am having an issue with a Simulink model using Model-Based Design (MBD), and I’m not sure if you could help me solve it. I am implementing Field Oriented Control (FOC) for a PMSM motor; I have created a simulated plant of the motor and I'm using the controllers from the AMCLIB library.&lt;/P&gt;&lt;P&gt;My goal is to run the control on an NXP evaluation board (specifically the S32K344 microprocessor on the S32K3X4EVB-T172 board). To perform the control, I need to read the currents from the simulated plant using the board's ADC via the NXP ADC blocks. Additionally, I need to synchronize these ADC readings with the PWM. Could you tell me which blocks I should use? I'm not quite sure how to set it up.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Thank you for all&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Mar 2026 08:41:50 GMT</pubDate>
    <dc:creator>JonAnder_Amante</dc:creator>
    <dc:date>2026-03-05T08:41:50Z</dc:date>
    <item>
      <title>Problem with my project</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Problem-with-my-project/m-p/2326851#M10666</link>
      <description>&lt;P&gt;First of all, I apologize for the intrusion. I am having an issue with a Simulink model using Model-Based Design (MBD), and I’m not sure if you could help me solve it. I am implementing Field Oriented Control (FOC) for a PMSM motor; I have created a simulated plant of the motor and I'm using the controllers from the AMCLIB library.&lt;/P&gt;&lt;P&gt;My goal is to run the control on an NXP evaluation board (specifically the S32K344 microprocessor on the S32K3X4EVB-T172 board). To perform the control, I need to read the currents from the simulated plant using the board's ADC via the NXP ADC blocks. Additionally, I need to synchronize these ADC readings with the PWM. Could you tell me which blocks I should use? I'm not quite sure how to set it up.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Thank you for all&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2026 08:41:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Problem-with-my-project/m-p/2326851#M10666</guid>
      <dc:creator>JonAnder_Amante</dc:creator>
      <dc:date>2026-03-05T08:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with my project</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Problem-with-my-project/m-p/2332655#M10676</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226147"&gt;@JonAnder_Amante&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The NXP peripheral blocks—such as ADC or PWM—cannot directly interface with a plant model that runs only inside Simulink. The blocks are specifically designed for automatic code generation. To enable real interaction, the plant must also be deployed to a real‑time simulation platform, such as a Speedgoat system.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If your motor plant model is already running on a HiL setup, then you should configure your controller model exactly as you would when working with a physical motor. You can refer to the motor‑control examples included in the toolbox to see how the relevant peripherals are typically configured. Also, the synchronization between PWM and ADC is handled within the configuration project (S32 Configuration Tools .mex file or EB tresos project depending on your choice) attached to a model.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Stefan.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2026 12:40:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Problem-with-my-project/m-p/2332655#M10676</guid>
      <dc:creator>stefancinipeanu</dc:creator>
      <dc:date>2026-03-13T12:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with my project</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Problem-with-my-project/m-p/2333390#M10677</link>
      <description>&lt;P&gt;Good morning&lt;/P&gt;&lt;P&gt;I understand what you’re trying to say. What I want to do is load the plant model onto a real-time systems platform like Speedgoat and perform the control using the evaluation board I mentioned in my previous comment. As I told you, I’ve implemented the control using MBDT blocks, so my question is: how can I load just that part onto the evaluation board and the plant part onto Speedgoat&lt;/P&gt;&lt;P&gt;Thank you very much, and best regards&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2026 08:57:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Problem-with-my-project/m-p/2333390#M10677</guid>
      <dc:creator>JonAnder_Amante</dc:creator>
      <dc:date>2026-03-16T08:57:45Z</dc:date>
    </item>
  </channel>
</rss>

