<?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: 3-phase Inverter Emulation in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/3-phase-Inverter-Emulation/m-p/753967#M1843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/dumitru-daniel.popa"&gt;dumitru-daniel.popa&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;You take the PWM duty cycle computed by the SVM (which is between 0 and 1 - you do not need to scale it up to 100% or 1000% since you do not use the hardware) and you transform the value of the duty factor into 2 booleans based on a simple comparison.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Okay I understand this for principle.&lt;/P&gt;&lt;P&gt;I have the three PWM signals which are between 0 and 1&lt;/P&gt;&lt;P&gt;But how to compute the comparision so that PWM_A = Logical 1 (in simscape the gate signal&amp;nbsp;has to be&amp;nbsp;3,3) for 70 cycles in your example&amp;nbsp;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;I do not know how exactly you are simulation the inverter (powersim or something else) but you need to have the model execution time smaller than the time allocated for PWM computations.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'm using the Simscape Power Systems&amp;nbsp;Toolbox for the Inverter and PMSM machine. The IGBT is in the "Semiconductors" Library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Feb 2018 09:27:01 GMT</pubDate>
    <dc:creator>lethuer</dc:creator>
    <dc:date>2018-02-19T09:27:01Z</dc:date>
    <item>
      <title>3-phase Inverter Emulation</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/3-phase-Inverter-Emulation/m-p/753965#M1841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PMSM&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/467938"&gt;Module 5: V/F Scalar Control&lt;/A&gt;&amp;nbsp;this Subsystem is used to emulate the 3-phase driver:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Unbenannt.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16937i30F28D37A812BD2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unbenannt.PNG" alt="Unbenannt.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;PWM_CMD looks like this, so the original is multiplied by 1000 and duty cycle is always between 0 and 100% (e.g. PWM_B at the beginning 700 = 70%):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Unbenannt1.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/17151i261F24B7801F05BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unbenannt1.PNG" alt="Unbenannt1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I'm right this means at the beginning the high side igbt PWM_B(H) = 70% and low side igbt PWM_B(L) = 30% ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to simulate the inverter like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Unbenannt2.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/17070iBF6E0E1200228F11/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unbenannt2.PNG" alt="Unbenannt2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this I have to get the Gate Signals called "G" but I don't know them.&lt;/P&gt;&lt;P&gt;How could I get them from the duty cycle above ?&lt;/P&gt;&lt;P&gt;The Inverter is working in complementary mode, so every time IGBT A(H) is on IGBT A(L) has to be off.&lt;/P&gt;&lt;P&gt;V IN(ON) Threshold = 2.6V, so the gates are driven by 3.3V directly by the controller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 23:26:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/3-phase-Inverter-Emulation/m-p/753965#M1841</guid>
      <dc:creator>lethuer</dc:creator>
      <dc:date>2018-02-16T23:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: 3-phase Inverter Emulation</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/3-phase-Inverter-Emulation/m-p/753966#M1842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leon,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&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;If I'm right this means at the beginning the high side igbt PWM_B(H) = 70% and low side igbt PWM_B(L) = 30% ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You are correct!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;For this I have to get the Gate Signals called "G" but I don't know them.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;How could I get them from the duty cycle above ?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You take the PWM duty cycle computed by the SVM (which is between 0 and 1 - you do not need to scale it up to 100% or 1000% since you do not use the hardware) and you transform the value of the duty factor into 2 booleans based on a simple comparison.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know how exactly you are simulation the inverter (powersim or something else) but you need to have the model execution time smaller than the time allocated for PWM computations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: if the FAST LOOP is 100usec (you compute a duty cycle at each 100usec) then if you wish to have a gate command resolution of 1% then you need to simulate the inverter subsystem 100 times faster than the subsystem that computes the duty cycles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. if you wish to have 70% ON for IGBT A(H) then you keep G A(H) ON for 70 cycles and then you switch it OFF and do the opposite for the lower part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In theory - the inverter and motor shall be simulated with the smallest step possible in order to replicate the continuous time domain. In this case you need to have the inverter and motor simulated @ 1e-6seconds (might be over-killing for a PC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Daniel&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 08:13:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/3-phase-Inverter-Emulation/m-p/753966#M1842</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2018-02-19T08:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: 3-phase Inverter Emulation</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/3-phase-Inverter-Emulation/m-p/753967#M1843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/dumitru-daniel.popa"&gt;dumitru-daniel.popa&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;You take the PWM duty cycle computed by the SVM (which is between 0 and 1 - you do not need to scale it up to 100% or 1000% since you do not use the hardware) and you transform the value of the duty factor into 2 booleans based on a simple comparison.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Okay I understand this for principle.&lt;/P&gt;&lt;P&gt;I have the three PWM signals which are between 0 and 1&lt;/P&gt;&lt;P&gt;But how to compute the comparision so that PWM_A = Logical 1 (in simscape the gate signal&amp;nbsp;has to be&amp;nbsp;3,3) for 70 cycles in your example&amp;nbsp;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;I do not know how exactly you are simulation the inverter (powersim or something else) but you need to have the model execution time smaller than the time allocated for PWM computations.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'm using the Simscape Power Systems&amp;nbsp;Toolbox for the Inverter and PMSM machine. The IGBT is in the "Semiconductors" Library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 09:27:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/3-phase-Inverter-Emulation/m-p/753967#M1843</guid>
      <dc:creator>lethuer</dc:creator>
      <dc:date>2018-02-19T09:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: 3-phase Inverter Emulation</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/3-phase-Inverter-Emulation/m-p/753968#M1844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay I found a block "PWM Generator" which you can use to generate the gate signals.&lt;/P&gt;&lt;P&gt;It is working like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Unbenannt2.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18615i2E88E3CF1654ADC0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unbenannt2.PNG" alt="Unbenannt2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So the Inverter model now looks like this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Unbenannt.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18565i2CB3FCEDBFD5659B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unbenannt.PNG" alt="Unbenannt.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But now the required time for the Simulation&amp;nbsp;veeeery long...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 12:56:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/3-phase-Inverter-Emulation/m-p/753968#M1844</guid>
      <dc:creator>lethuer</dc:creator>
      <dc:date>2018-02-22T12:56:38Z</dc:date>
    </item>
  </channel>
</rss>

