<?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: Module 5: V/F Scalar Control in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726165#M1566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi&lt;SPAN&gt;&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/dumitru-daniel.popa"&gt;dumitru-daniel.popa&lt;/A&gt;‌,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;I manually put the UQ axis myself using freemaster and I noticed something.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;the motor only start vibrating @ about 0.45 value, the motor rotates with vibration @ about 0.5 value.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;I feel that the motor is loosing steps or PWM&amp;nbsp;frequency&amp;nbsp;is tool high or too low.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;I &lt;A href="https://www.youtube.com/watch?v=BOxFgFIKj1E"&gt;linked a video&lt;/A&gt;&amp;nbsp;with values from 0.45, 0.5, 0.6, 0.7, 0.8 and 0.9, the motor seems to be running but the noise is high and the rotation is not smooth.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also attached the model and the freemaster project.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 May 2020 12:45:30 GMT</pubDate>
    <dc:creator>hossam_yonis</dc:creator>
    <dc:date>2020-05-16T12:45:30Z</dc:date>
    <item>
      <title>Module 5: V/F Scalar Control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726087#M1488</link>
      <description>&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_1.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11318i15615B1CB28E2F84/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; padding: 0in; color: #000080; font-weight: bold; font-size: 22px;"&gt;&lt;STRONG&gt;INTRODUCTION&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333; border: 0px; font-weight: inherit;"&gt;In this module of the&amp;nbsp;&lt;/SPAN&gt;&lt;A style="color: #2989c5; text-decoration: none;" href="https://community.nxp.com/thread/464336" target="_blank" rel="noopener noreferrer" data-objecttype="1"&gt;3-Phase PMSM Control Workshop with NXP's Model-Based Design Toolbox&lt;/A&gt;&lt;SPAN style="color: #333333; border: 0px; font-weight: inherit;"&gt;&amp;nbsp;,&amp;nbsp;we are going to &lt;STRONG&gt;spin the PMSM for the first time&lt;/STRONG&gt; with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A style="color: #2989c5; text-decoration: none;" href="https://www.nxp.com/products/processors-and-microcontrollers/arm-based-processors-and-mcus/s32-automotive-platform/s32k144-evaluation-board:S32K144EVB" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer"&gt;S32K&lt;/A&gt;&lt;SPAN style="color: #333333; border: 0px; font-weight: inherit;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A style="color: #2989c5; text-decoration: none;" href="https://www.nxp.com/support/developer-resources/hardware-development-tools/ultra-reliable-mcus-development-platform/low-cost-motor-control-solution-for-devkit-platform:DEVKIT-MOTORGD" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer"&gt;MotorGD&lt;/A&gt;&lt;SPAN style="color: #333333; border: 0px; font-weight: inherit;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Development Kits, learn more about Model-Based Design approach by &lt;STRONG&gt;building a PMSM mathematical model in Simulink&lt;/STRONG&gt; to facilitate the development and validation of control algorithm and ultimately &lt;STRONG&gt;deploy that algorithm on the real hardware&lt;/STRONG&gt; and check the experimental results against the one obtained in simulation environment.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;First, lets see what do we want to achieve in this module ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL style="padding: 0px 0px 0px 30px; text-align: justify;"&gt;
&lt;LI style="margin: 0.2em 0px;"&gt;&lt;SPAN style="color: #333333;"&gt;Check the PWM signals generation based on Space Vector Modulation (SVM) technique discussed in the previous module&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A style="color: #2989c5; text-decoration: none;" href="https://community.nxp.com/thread/466420" target="_blank" rel="noopener noreferrer" data-orig-content="Module 4: Space Vector Modulation"&gt;Module 4: Space Vector Modulation&lt;/A&gt;&lt;SPAN style="color: #333333;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;. More than that, we want to check the&amp;nbsp;PWM signals under normal conditions and there is no better way to do that rather than having the motor spinning. By i&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;mplementing a simple way to accelerate or decelerate the motor and maintain various speed levels based on the user commands received via serial communication from a host PC we can easily verify the SVM under both dynamic and steady-state regimes.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="margin: 0.2em 0px;"&gt;&lt;SPAN style="color: #333333;"&gt;Having the motor spinning in a steady-state regime will give us the possibility to implement, test and validate the phase currents measurement which is a critical mandatory step for Field Oriented Control (FOC). Because the phase currents are measured with shunt resistors mounted in series with the lower inverter switches we will need to synchronize the A/C conversions with&amp;nbsp;PWM signals to obtain the meaningful values (...but more about that in the next module)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333; border: 0px; font-weight: inherit;"&gt;Based on these considerations, the simplest control method I can think off that allows us to achieve all these goals is:&amp;nbsp;&lt;STRONG&gt;V/F Scalar Control&lt;/STRONG&gt;.&amp;nbsp;Another name for this method is Volts per Hertz (V/Hz) but the main principle behind it is the same:&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;the ratio between voltage and frequency is kept constant throughout the motor speed range&lt;/STRONG&gt;.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;In Fig. 1, which represent the global application mapping diagram as discussed in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/thread/465758" target="_blank" rel="noopener noreferrer"&gt;Module 3: System Partitioning&lt;/A&gt;&amp;nbsp;, are shown the main hardware blocks that are going to be configured and the control path we are going to follow (with red line). To achieve V/F scalar control we are going to configure the S32K FlexTimer&amp;nbsp;peripheral to generate six PWM signals that are used to control the MotorGD Development Kit DC to AC power inverter via a dedicated MOSFET pre-driver chip: MC34GD3000. To&amp;nbsp;enable the MC34GD3000 chip operation we will need to control&amp;nbsp;two additional&amp;nbsp;signals : Enable and Reset via dedicated GPIO.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333; background-color: transparent;"&gt;The interactions between host PC and hardware will be done via OpenSDA serial communication that will be used to download the code generated from MATLAB and to visualize various control signals with FreeMASTER.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN style="color: #333333;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_7.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11319i91E644E1B793D24E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN style="color: #333333; font-size: 13px;"&gt;Fig. 1: Application Mapping -&amp;nbsp; HW &amp;amp; SW modules&amp;nbsp;used for V/F Scalar Control are highlighted in green&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;After the control algorithm verification &amp;amp; validation but prior to connecting the PMSM Linix motor, we are going to check the PWM signals with an oscilloscope. This will ensure we are following all&amp;nbsp;hardware recommendations and since we do not have yet active protections, it will spare us from unpleasant surprises.&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; padding: 0in; color: #000080; font-weight: bold; font-size: 22px;"&gt;&lt;STRONG&gt;V/F SCALAR CONTROL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #3d3d3d;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #3d3d3d; text-align: justify;"&gt;If you recall the&lt;SPAN&gt;&amp;nbsp;picture&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;from Fig. 3,&amp;nbsp;&lt;/SPAN&gt;the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/thread/464336" target="_blank" rel="noopener noreferrer"&gt;3-Phase PMSM Control Workshop with NXP's Model-Based Design Toolbox&lt;/A&gt;&amp;nbsp;article, then you know that V/F Scalar Control is the term used to describe a very basic form of motor control that is using a non-vector approach scheme. A&amp;nbsp;PMSM can be led to steady state regime by one of the following control techniques:&lt;/P&gt;
&lt;UL style="color: #3d3d3d; padding: 0px 0px 0px 30px; text-align: justify;"&gt;
&lt;LI style="margin: 0.2em 0px;"&gt;simple voltage fed controller - like the one we are going to implement now.&lt;/LI&gt;
&lt;LI style="margin: 0.2em 0px;"&gt;current type controller (DTC);&lt;/LI&gt;
&lt;LI style="margin: 0.2em 0px;"&gt;speed controlled scheme (FOC);&lt;/LI&gt;
&lt;/UL&gt;
&lt;P style="color: #3d3d3d; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #3d3d3d; text-align: justify;"&gt;To&amp;nbsp;explain how this technique works&amp;nbsp;lets recall first the&amp;nbsp;&lt;A href="https://community.nxp.com/thread/465280" target="_blank" rel="noopener noreferrer"&gt;Module 2: PMSM and FOC Theory&lt;/A&gt;&amp;nbsp;. It that module we have discussed various reference frames used to describe the PMSM theory of operation and we have obtained the main equations of the motor in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;shown here as (eq.&amp;nbsp;1 and eq. 2)&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="width: 86.0704%;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_4.png" style="width: 315px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11356i8B3ADF022380D3C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD style="width: 10%;"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(eq. 1)&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="width: 86.0704%;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_8.png" style="width: 305px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11371iCC157B0DDF8F63F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD style="width: 10%;"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(eq. 2)&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; color: #333333; font-weight: inherit;"&gt;where:&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="height: 29px;"&gt;
&lt;TD style="width: 13.7301%; height: 29px; text-align: right;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_17.png" style="width: 105px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11454i4F1A2FE95DB7164B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_17.png" alt="pastedImage_17.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD style="width: 82.2699%; height: 29px;"&gt;voltages and current in d-axis and q-axis respectively&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 29px;"&gt;
&lt;TD style="width: 13.7301%; height: 29px; text-align: right;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_19.png" style="width: 91px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11455iBD28FA93CDA9C033/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_19.png" alt="pastedImage_19.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD style="width: 82.2699%; height: 29px;"&gt;d and q-axis inductances and stator winding resistance&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 29px;"&gt;
&lt;TD style="width: 13.7301%; height: 29px; text-align: right;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_22.png" style="width: 113px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11456iC47F7D57B610F0F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_22.png" alt="pastedImage_22.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD style="width: 82.2699%; height: 29px;"&gt;d and q-axis flux linkage and permanent magnet flux linkage&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 29px;"&gt;
&lt;TD style="width: 13.7301%; height: 29px; text-align: right;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_23.png" style="width: 30px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11457i807DAB528D6B7F72/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_23.png" alt="pastedImage_23.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD style="width: 82.2699%; height: 29px;"&gt;electrical rotor speed&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="border: 0px; color: #333333; font-weight: inherit;"&gt;Rewriting (eq.1)&amp;nbsp;in scalar from and time domain we will obtain:&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="height: 24px;"&gt;
&lt;TD style="width: 86.3819%; height: 24px;"&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_24.png" style="width: 248px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11458i92D407A87B2838AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_24.png" alt="pastedImage_24.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_25.png" style="width: 246px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11459i9637BA96DCA3B4C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_25.png" alt="pastedImage_25.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="width: 10%; height: 24px;"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(eq. 3)&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #3d3d3d;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #3d3d3d; text-align: justify;"&gt;In steady state regime, the flux linkage variation is zero, and for further&amp;nbsp;simplification we are going to assume the stator winding resistance is neglectable. Taking into consideration these simplifications and the flux linkage equation (eq. 2) then the equations (eq. 3) becomes:&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="width: 87.9447%;"&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_27.png" style="width: 126px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11460i3BDF9E412AC32144/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_27.png" alt="pastedImage_27.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_28.png" style="width: 234px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11461iD2ED968EDD3664F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_28.png" alt="pastedImage_28.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="width: 10%;"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(eq. 4)&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;At this point we can transform the electric speed in frequency and rewrite the (eq.4) as a ratio of V/F:&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="width: 88.5678%;"&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_1.png" style="width: 149px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11462i1DAFC0975DA75440/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_2.png" style="width: 245px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11463i5291ADE1BF3155D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="width: 10%;"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(eq. 5)&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="border: 0px; color: #333333; font-weight: inherit;"&gt;In V/F scalar control method the frequency of the stator magnetic flux is set according&amp;nbsp;with the desired synchronous rotor speed&amp;nbsp;while the magnitude of the stator voltage is adjusted to keep the ratio between them constant. No control over voltage or current vectors angles is utilized, hence the name scalar control.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;The V/F ratio is calculated from the nominal values of the PMSM voltage and frequency parameters. By maintaining a constant V/F ratio between the amplitude and frequency of 3-phase voltage waveforms, then the stator flux of the PMSM can be maintained relatively constant in steady state. However, in practice a typical V/F profile is not constant over the entire range of motor speed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;As can be seen in Fig. 2, the V/F profile may be divided in three main regions:&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL style="list-style-type: upper-roman;"&gt;
&lt;LI style="margin: 0.2em 0px; text-align: justify;"&gt;&lt;STRONG&gt;Compensation&lt;/STRONG&gt; – a higher than normal voltage is required to compensate the voltage drop across the stator resistance that was neglected for simplified mathematical model&lt;/LI&gt;
&lt;LI style="margin: 0.2em 0px; text-align: justify;"&gt;&lt;STRONG&gt;Linear&lt;/STRONG&gt; - follows the constant V/f relationship as derived from (eq. 5)&lt;/LI&gt;
&lt;LI style="margin: 0.2em 0px; text-align: justify;"&gt;&lt;STRONG&gt;Field weakening&lt;/STRONG&gt; - constant V/f ratio cannot be satisfied due to the stator voltages limitation at the rated value in order to avoid insulation breakdown&lt;/LI&gt;
&lt;/OL&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="height: 243px;"&gt;
&lt;TD style="text-align: center; height: 243px;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_2.png" style="width: 825px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11464iC1E788C3C2A1853C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 24px;"&gt;
&lt;TD style="text-align: center; height: 24px;"&gt;&lt;SPAN style="color: #333333; font-size: 13px;"&gt;Fig. 2:&amp;nbsp;V/F profile practical aspects&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;The V/F scalar control is the most common control strategy used for induction motor drives.&amp;nbsp;In case of&amp;nbsp;PMSM, the V/F scalar control is a good alternative in applications where good dynamic performance is not required (e.g.: HVAC, fans, pumps or blowers). In such cases the V/F scalar control is performed without the need of a position/speed sensor.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333; border: 0px; font-weight: inherit;"&gt;By using V/F scalar control there is no need for high capability CPU as in the case of FOC, but keep in mind that this kind of simplicity also comes with some disadvantages:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL style="color: #3d3d3d; padding: 0px 0px 0px 30px;"&gt;
&lt;LI style="border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333; border: 0px; font-weight: inherit;"&gt;instability of the system after exceeding a certain applied frequency&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333; border: 0px; font-weight: inherit;"&gt;systems low dynamic performance, which limits the use of this control method&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333; border: 0px; font-weight: inherit;"&gt;poor fault protection against stall detection and over-currents&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #3d3d3d; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;In case of PMSM, both open and closed-loop control of the speed can be implemented based on the V/F scalar control. Open-loop control is used in applications where system dynamic&amp;nbsp;response is not a concern. For such use&amp;nbsp;cases, the frequency is determined based on the desired speed and the assumption that the rotor will&amp;nbsp;ultimately follow the synchronous speed.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #3d3d3d; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #3d3d3d; text-align: justify;"&gt;&lt;SPAN style="border: 0px; color: #333333; font-weight: inherit;"&gt;Throughout this&amp;nbsp;module we are going to implement an open-loop control system topology for a 3-phase PMSM using V/F scalar control as the one shown in Fig. 3. Such control structure will allow us to control the PMSM speed without any feedback of motor parameters or rotor position.&amp;nbsp;The motor is driven by the conventional 3 phase voltage-source inverter via MotorGD DevKit. The NXP's S32K MCU is being used to generate the six PWM signals using a modified SVM&amp;nbsp;PWM technique with 3-rd harmonic injection.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_1.png" style="width: 997px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11465i953309142103FD51/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN style="color: #333333; font-size: 13px;"&gt;Fig. 3:&amp;nbsp;V/F&amp;nbsp;scalar control block diagram&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;In order to maintain a similar topology with two control loops and similar data structures for the examples that we are going to use in this workshop, we are going to implement the V/F scalar control application based on:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL style="color: #3d3d3d; padding: 0px 0px 0px 30px;"&gt;
&lt;LI style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;FAST control loop is executed at each 0.1ms and computes the PWM duty cycles based on Space Vector Modulation. The reference voltages for (dq)-axes and the motor electrical&amp;nbsp;speed represent the inputs. The electrical angle needed for Inverse Park Transformation is computed based on electrical speed reference.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;SLOW control loop is executed at each 1ms and provides the voltage references for Inverse Park transformation and the electrical speed profile. Inside this loop, the user commands are handled and based on a parameterisable Ramp Profile the appropriate control parameters are generated. The V/F profile is implemented via a tunable Look-Up-Table (LUT)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&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 style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; padding: 0in; color: #000080; font-weight: bold; font-size: 22px;"&gt;&lt;STRONG&gt;MATLAB&amp;nbsp;MODELLING OF CONTROL ALGORITHM&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;MATLAB/Simulink environment and NXP toolbox for S32K1xx allow&amp;nbsp;us&amp;nbsp;to approach the motor control algorithm development very straightforward. Using Model-Based Design strategy we can develop, implement, simulate and test the control method entirely in simulation environment and once we are satisfied with the results we can proceed further by deploying the generated code on the real target and perform final validation and testing.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;Fig. 4 shows the Simulink model we are going to use&amp;nbsp;for V/F scalar control implementation, testing and validation. The model can be find attached at the end of this article.&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_2.png" style="width: 940px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11628iF3F18822FEBAD2EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 4: Simulink model for the entire plant: MCU-DC2AC INVERTER-PMSM&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;The model shown in Fig. 4 consists in three major subsystems that mimics the actual hardware arrangement, each one of them implementing a specific functionality:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL style="color: #3d3d3d; padding: 0px 0px 0px 30px;"&gt;
&lt;LI style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;&lt;STRONG&gt;S32K14x EVB&lt;/STRONG&gt; - implements the S32K MCU logic that allows the control algorithm&amp;nbsp;to compute the PWM commands for the power inverter;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;&lt;STRONG&gt;Motor GD DevKit&lt;/STRONG&gt; - implements a simplified model of power inverter that converts the PWM commands into high voltage continuous signals;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;&lt;STRONG&gt;PMSM Model&lt;/STRONG&gt; - implements a simplified PMSM motor model that replicates the behavior for the real LINIX motor.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;S32K14x EVB Subsystem&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #333333;"&gt;This is a discrete model that implements the V/F scalar control block diagram shown in Fig. 3. There are 2 subsystems that are triggered based on specific timing intervals. These 2 subsystem mimics the existance of the separated digital control loops: SLOW &amp;amp; FAST&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="height: 513px;"&gt;
&lt;TD style="text-align: center; height: 513px;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_5.png" style="width: 940px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11629i806173BFCE80F3D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 24px;"&gt;
&lt;TD style="text-align: center; height: 24px;"&gt;&lt;SPAN style="font-size: 13px; color: #333333;"&gt;Fig. 5: FAST and SLOW control loop model&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #3d3d3d; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;The SLOW Loop Subsystem Fig. 6, updates the commands for the FAST Loop Subsystem shown in Fig. 7. Based on the SPEED_CMD set by the user as motor target speed, a trapezoidal speed profile is generated using a dedicated Simulink block exposed by the AMMCLIB Add-on. Based on this SPEED_REF the electrical angle used for Inverse Park transformation is going to be derived.&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_8.png" style="width: 940px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11631i17627C8AA00BD440/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN style="font-size: 13px; color: #333333;"&gt;Fig. 6: SLOW control loop model&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #3d3d3d; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;The quadrature voltages alpha-beta are computed based on the electrical angle and the (dq) reference voltages obtained in SLOW Loop. In case of UD_REF the value is set to 0 just to emulate the theory behind FOC and in case of UQ_REF the value is obtained from a Look-Up-Table (LUT) that implement the concept of V/F scalar control.&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_11.png" style="width: 940px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11632iDFF431C264C22A7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_11.png" alt="pastedImage_11.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN style="font-size: 13px; color: #333333;"&gt;Fig.&amp;nbsp;7:&amp;nbsp;FAST control loop model&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #3d3d3d;"&gt;&lt;SPAN style="color: #333333;"&gt;At each 0.1ms the PWM commands are computed and updated based on AMMCLIB specialized Simulink block that implements and optimized Space Vector Modulation with 3rd harmonic injection. These PWM commands are then passed to the next subsystem that emulates the operations for power inverter.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #3d3d3d;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #3d3d3d;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;MotorGD DevKit Subsystem&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #333333;"&gt;This&amp;nbsp;subsystem implements a basic model to emulate the DC2AC power inverter. The PWM commands are converted into high voltage signals (depending on the Vdc value selected) that are then applied to the motor windings.&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="height: 575px;"&gt;
&lt;TD style="text-align: center; height: 575px;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_4.png" style="width: 940px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11633iD4E62E39845E477D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 24px;"&gt;
&lt;TD style="text-align: center; height: 24px;"&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 8:&amp;nbsp;Simplified Power Inverter model&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;PMSM Model&amp;nbsp;Subsystem&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;The Simulink model consists in standard 3-phase PMSM motor equations shown in&amp;nbsp;&lt;A href="https://community.nxp.com/thread/465280" target="_blank" rel="noopener noreferrer"&gt;Module 2: PMSM and FOC Theory&lt;/A&gt;. Within the model you can easily identify:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL style="color: #3d3d3d; padding: 0px 0px 0px 30px;"&gt;
&lt;LI style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;stator windings electrical model&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;electro-mechanical model&lt;/LI&gt;
&lt;LI style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;sinusoidal back-EMF model&lt;/LI&gt;
&lt;/UL&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_8.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11634iFA6F959A2F57BCF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN&gt;Fig. 9&lt;/SPAN&gt;&lt;SPAN&gt;: 3-phase PMSM model&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Note 1: we are not going into details about PMSM modelling since this is not the purpose of this module. Feel free to follow the link indicated in the model to get more details. As usual, if you have any questions about it, feel free to ask.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Note 2: I've choose to implement this simplified model to avoid the usage of other MATLAB toolboxes. If you have access to &lt;A href="https://www.mathworks.com/products/simpower.html" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer"&gt;Simscape Power System&lt;/A&gt; you could use one of the motors from there.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="jive_text_macro jive_macro_alert"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/PRE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; padding: 0in; color: #000080; font-weight: bold; font-size: 22px;"&gt;&lt;STRONG&gt;MATLAB&amp;nbsp;SIMULATION&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;OF&amp;nbsp;THE PLANT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;The entire V/F scalar control algorithm (...and not only) can be validated using this simulation environment provided in MATLAB/Simulink. This way we can validate the Space Vector Modulation, V/f scalar control and PMSM motor dynamic responses even without having the actual hardware setup. For those of you planning to use NXP hardware in the future, this approach might be useful&amp;nbsp;in getting familiar with motor control.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;Fig. 10, 11 and 12 show the main control signals and outputs for each subsystems discussed earlier. At this point we can investigate various quantities that might not be easily accessible on the real plant&lt;/SPAN&gt;.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_1.png" style="width: 927px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11674i67E2AE5DD853DA0A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 10: V/F scalar control commands in case of start-up ramp:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;(1) Speed Profile, (2) Electric Angle, (3) quadrature voltage references and (4) 3-phase stator voltages references&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_4.png" style="width: 927px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11675iCF6B887D51B9B7D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 11: Space Vector Modulation verification: Inputs &amp;amp; Outputs&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_7.png" style="width: 927px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11676i278B23CC5C342D9D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 12: PMSM Model&amp;nbsp;Responses in case of start-up sequence:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;(1) Command vs. Actual Motor Speed, (2) Rotor angle vs. Rotor position, (3) Stator Currents and (4) Back EMF voltages&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #333333;"&gt;As can be seen there is a good match between the results obtained in simulation and the PMSM motor theory. Now that we have built confidence in the results it's time to move on to next stage.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; padding: 0in; color: #000080; font-weight: bold; font-size: 22px;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; padding: 0in; color: #000080; font-weight: bold; font-size: 22px;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;EMBEDDED TARGET VERIFICATION&amp;nbsp;&lt;/SPAN&gt;OF CONTROL ALGORITHM&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;Since the modelling and simulation phases are completed with satisfactory results, it is time to convert the Simulink model and adapt it for Code Generation. The Fig. 13, shows the actual model that we are going to use the Code Generation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_4.png" style="width: 898px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11916i816025E99F042BD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 13: Simulink model for S32K embedded target code generation&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;The&amp;nbsp;model depicted in Fig. 13 is derived from the one shown in Fig. 4 and almost 90% of it share the same similarities. To have the model suitable for code generation there are a few modifications that needs to be done:&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL style="color: #3d3d3d; font-weight: 400; padding: 0px 0px 0px 30px;"&gt;
&lt;LI style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;Enable the MOSFET pre-driver;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;Enable the PWM signal generation from the appropriate FTM module;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;Add FreeMASTER communication driver into the application in order to have the capabilities to read/write data to/from S32K MCU;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;Remove the continuous blocks used in the previous simulation phase;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #000000; background-color: #000000; border-color: #000000;" width="100%"&gt;
&lt;THEAD style="border: inherit solid inherit;"&gt;
&lt;TR style="background-color: #efefef;"&gt;
&lt;TH style="width: 93%; background-color: #000000;" colspan="3"&gt;&lt;SPAN style="color: #ffffff;"&gt;Video training:&lt;SPAN&gt;&amp;nbsp;Open Loop&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #000000; font-weight: bold;"&gt;V/F Scalar Control Model for PMSM&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="background-color: #000000;"&gt;
&lt;TD style="width: 19%; text-align: center;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD style="width: 61.4981%; text-align: center;"&gt;
&lt;DIV class="lia-vid-container video-embed-center"&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6185811179001w960h540r156" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6185811179001" data-account="6153537070001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6153537070001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6185811179001w960h540r156');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.nxp.com/t5/video/gallerypage/video-id/6185811179001"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD style="width: 12.5019%; text-align: center;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD colspan="3" style="width: 19%;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000080; font-size: 15px;"&gt;&lt;STRONG&gt;MC34GD3000 Pre-Driver Enablement&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;The MC34GD3000 is a field effect transistor (FET) pre-driver designed for 3-phase motor control and similar applications.&amp;nbsp;The IC contains three high-side and three low-side FET pre-drivers. Three external bootstrap capacitors provide gate charge to the high side FETs. The IC interfaces to a&amp;nbsp;S32K MCU via six direct input control signals, an SPI port for device setup and asynchronous reset, enable and interrupt signals.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;As it is shown in Fig. 14, the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A style="color: #2989c5; text-decoration: none;" href="https://www.nxp.com/docs/en/data-sheet/MC34GD3000.pdf" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer"&gt;MC34GD3000&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;MOSFET pre-driver needs to be enabled before PWM signals generation.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;The pre-driver can be configured over SPI communication to enable various features. Please check the&amp;nbsp;&lt;A style="color: #2989c5; background-color: #ffffff; text-decoration: underline;" href="https://www.nxp.com/docs/en/data-sheet/MC34GD3000.pdf" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer"&gt;MC34GD3000&lt;/A&gt;&amp;nbsp;for details. In this module we are not going to use this feature.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="jive_text_macro jive_macro_alert"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/PRE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;After IC initialization phase is complete, the device goes into the enable mode and operates normally. Normal operation continues in this mode as long as both enable pins EN1/EN2 and RSTB are high.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_18.png" style="width: 612px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11917i662CAFB366BFDEB0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_18.png" alt="pastedImage_18.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 14: MC34GD Pre-driver pins&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;Add S32K dedicated peripheral blocks for&amp;nbsp;GPIO to enable the MC34GD3000 pre-driver normal operation and remove the existing simplified simulation model blocks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="width: 46.6055%; text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_9.png" style="width: 937px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11921i814BE72381FC3025/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_9.png" alt="pastedImage_9.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD style="width: 46.3945%;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_10.png" style="width: 936px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11922iF190A37B4D1AFAC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_10.png" alt="pastedImage_10.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD colspan="2" style="width: 46.6055%; text-align: center;"&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 15: MotorGD subsystem: on the left -&amp;nbsp;simplified inverter Simulink block diagram, on the right - S32K GPIO peripherals that set EN1/EN2 and RST pins to high&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="width: 48.8754%;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_12.png" style="width: 540px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11923i371A329B328D6A38/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_12.png" alt="pastedImage_12.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD style="width: 49.2215%;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_13.png" style="width: 540px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11924iDDC9884EE98AFD9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_13.png" alt="pastedImage_13.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD colspan="2" style="width: 48.8754%; text-align: center;"&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 16: GPIO Configuration for Enable and RST signals&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000080; font-size: 15px;"&gt;&lt;STRONG&gt;S32K&amp;nbsp;FlexTimer(FTM)&amp;nbsp;Enablement&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;The most important aspect of the whole application is to be able to generate the PWM signals based on the Space Vector Modulation technique and pass these signals to MC34GD3000 pre-driver. NXP's Model-Based Design Toolbox for S32K1xx address this issue in a very simple and convenient way by providing a S32K dedicated peripheral block for&amp;nbsp;FTM&amp;nbsp;as shown in Fig. 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="height: 250px;"&gt;
&lt;TD style="width: 48.9619%; height: 250px;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_12.png" style="width: 937px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11925i55856DF2A2B20277/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_12.png" alt="pastedImage_12.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD style="width: 49.1349%; height: 250px;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_13.png" style="width: 938px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11926iD9DE5758D44F573C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_13.png" alt="pastedImage_13.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 24px;"&gt;
&lt;TD colspan="2" style="width: 48.9619%; height: 24px; text-align: center;"&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 17: PWM generation in Simulink modelling vs. PWM generation used for code generation on S32K&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #3d3d3d; font-weight: 400;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #3d3d3d; font-weight: 400; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;The FTM Simulink&amp;nbsp;block is&amp;nbsp;configured to initialize the FTM3 module since the output signals from that specific module are routed on the PCB to control the actual power inverter MOSFETs. The schematic for the MotorGD DevKit Fig. 18,&amp;nbsp;shows the actual signal routing.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;The&amp;nbsp;MotorGD DevKit was designed to be compatible with Arduino shields, therefore only some specific signals are available on the pin-headers. In case you design your own power inverter you might need to reconfigure the actual pins that controls the MOSFETs.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="jive_text_macro jive_macro_alert"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/PRE&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_20.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11927iB7050670C1438D42/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_20.png" alt="pastedImage_20.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 18: MC34GD3000 and MotorGD DevKit Power Inverter signal routing&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #3d3d3d; font-weight: 400;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #3d3d3d; font-weight: 400; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;Based on the pins assignment on both&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A style="color: #2989c5; text-decoration: none;" href="https://www.nxp.com/docs/en/quick-reference-guide/DEVKIT-MOTORGD_QSG.pdf" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer"&gt;MotorGD DevKit&lt;/A&gt;&amp;nbsp;Fig. 19 and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A style="color: #2989c5; text-decoration: none;" href="https://www.nxp.com/docs/en/quick-reference-guide/S32K144EVB-QSG.pdf" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer"&gt;S32K14x EVB&lt;/A&gt;&amp;nbsp; Fig. 20, we can configure the actual&amp;nbsp;FTM peripheral as shown in Fig. 21.&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_1.png" style="width: 842px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11928iF797E8A60998AA52/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 19: MotorGD DevKit Pin Assignment&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_7.png" style="width: 998px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11872i9A4EC99525DC94A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 20:&amp;nbsp;S32K144 Evaluation Board Pin&amp;nbsp;Assignment&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #3d3d3d; font-weight: 400;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center; width: 48%;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_8.png" style="width: 673px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11873i1050C425D8729253/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD style="width: 49%;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_10.png" style="width: 673px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11874i3B8D5623A807DC7D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_10.png" alt="pastedImage_10.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD colspan="2" style="width: 97%; text-align: center;"&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 21: FTM Peripheral Block Configuration for controlling the power inverter from MotorGD DevKit&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #3d3d3d; font-weight: 400;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000080; font-size: 15px;"&gt;&lt;STRONG&gt;FreeMASTER Support for Data Visualization&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;Before generating the C-code for the application and deployment on the hardware, we need to enable and configure the FreeMASTER embedded driver to allow us the visualize the data in real time. Since most critical part of the V/F control algorithm is done in the FAST loop that is executed at each 0.1ms, we will need to configure the FreeMASTER to capture the data in that specific routine.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #3d3d3d; font-weight: 400; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #3d3d3d; font-weight: 400; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;NXP's Model-Based Design Toolbox lets you configure and call the FreeMASTER anywhere in your model. For this application, since the goal is to check the real hardware data against the ones obtained from Simulink simulation we are going to configure the FreeMASTER as shown in Fig. 22.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #3d3d3d; font-weight: 400;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="width: 48.3564%;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_2.png" style="width: 540px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11876iE4530767C5BB068E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD style="width: 48.6436%;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_4.png" style="width: 540px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11929i404FF57F93FFDD45/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD colspan="2" style="width: 48.3564%; text-align: center;"&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 22: FreeMASTER configuration&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #3d3d3d; font-weight: 400;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #3d3d3d; font-weight: 400; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;Please note that we have configured the FreeMASTER to work in Short Interrupt mode, with a relative high priority - less than the ones needed for actual motor control loops and we have enabled the Recorder option for a timebase of 0.1ms.&amp;nbsp;All these settings and the actual function call for the FreeMASTER Recorder (Fig. 23) are needed to make sure you capture the data in the FAST loop - otherwise we might read wrong data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_7.png" style="width: 938px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11930i493C69A73B76571A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="text-align: center;"&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 23: Place the FreeMASTER Recorder Call Simulink Block in the FAST Loop Sybsystem&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; padding: 0in; color: #000080; font-weight: bold; font-size: 22px;"&gt;&lt;STRONG&gt;EMBEDDED TARGET VERIFICATION&amp;nbsp;AGAINST SIMULINK SIMULATION&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;At this point we can run the application on the embedded side and verify the results against the ones obtained in simulation. Since we want to verify the algorithm behavior prior to running the actual motor, then for these kind of tests, we do not have to power on the MotorGD DevKit. This verification step can be done using PIL co-simulation as well but for getting closer to the final application setup, I've choose to run the application completely independent of MATLAB environment. In this case the&amp;nbsp;real time data from S32K are obtained and visualized via FreeMASTER in RECORDER mode. The FreeMASTER project used in conjunction with Simulink model shown in Fig. 13 is attached at the end of the article.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;First, we will check the correct generation of the commands for SVM and the PWM duty cycles waveforms associated with these commands. In the next figures, on the left hand side we can see the waveforms generated with MATLAB/Simulink environment in SIMULATION mode while on the right hand side the same data are RECORDED with FreeMASTER on real hardware S32K MCU for the same scenario. As you can see there is a remarkable similarities between these sets of data, giving us confidence that once the PMSM will be connected the motor will behave as predicted in SIMULATION environment.&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="width: 47.827%;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_4.png" style="width: 539px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11931iA70BB56B2CD5C1D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD style="width: 46.173%;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_5.png" style="width: 520px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11964iE4DD7D32077C2D3E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD colspan="2" style="width: 47.827%; text-align: center;"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 24: SIMULATION vs. REAL Start-up Sequence&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;(1) Speed Reference Profile, (2)Electric Angle Transformation, (3) Fixed Frame Quadrature Voltages,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;(4) 3-phase PWM duty-cycles for each PMSM phase&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="width: 49.519%;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_7.png" style="width: 537px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11965iB773F0152D7DD243/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD style="width: 47.481%;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_8.png" style="width: 520px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11966iFF2C2966BB038E2A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD colspan="2" style="width: 49.519%; text-align: center;"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 25:&amp;nbsp;SIMULATION vs. REAL&amp;nbsp;Space Vector Modulation in Steady State Regime&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;Inputs: (1) DQ Frame Voltages, (2) Fixed Frame Quadrature voltages, (3) Electric Angle for 500[rpm] equivalent&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;Output: (4) SVM Sector Identification&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD style="width: 50.173%;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_10.png" style="width: 537px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11967i4A315A9AAD47430C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_10.png" alt="pastedImage_10.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD style="width: 47.9239%;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_11.png" style="width: 519px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11968i49BA4954D5C01648/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_11.png" alt="pastedImage_11.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD colspan="2" style="width: 50.173%; text-align: center;"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 26:&amp;nbsp;SIMULATION vs. REAL PMSM Steady State Zoom&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 13px;"&gt;(1) Electric angle variation for 500[rpm] motor speed and equivalent (2) SVM 3-phase voltage references&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; padding: 0in; color: #000080; font-weight: bold; font-size: 22px;"&gt;&lt;STRONG&gt;VALIDATION ON&amp;nbsp;REAL PLANT&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;Once the verification phase is completed successfully, we can start to validation on the real plant: MCU-DRIVER-PMSM&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;We start with PWM signal generation. The scope of this verification is to check the correct waveform generation (polarity and frequency) and signal integrity (rising/falling slopes, signal levels, dead-time). For this test we are going to use an oscilloscope to scope the digital signals directly on MotorGD DevKit PCB.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD colspan="2" style="width: 43.7405%; text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_4.png" style="width: 906px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11969i0D9A4C6852CA33F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD colspan="2" style="width: 43.7405%; text-align: center;"&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 27: PWM High (yellow) and Low (cyan) Commands&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Note PWM HIGH and LOW are configured to be complementary but due to HW restrictions the low side PWM signals are active LOW.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="jive_text_macro jive_macro_alert"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/PRE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="font-size: 15px; color: #333333;"&gt;As can be seen in Fig. 27, the PWM signal generation is done correctly with 10KHz frequency and correct polarities based on the settings from Fig. 21.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="font-size: 15px; color: #333333;"&gt;At this point we can connect the PMSM and let is spin. If you power on the boards, the motor should start sniping, acceleration from 0 to 1000[rpm] in 1[sec]. From FreeMASTER watch variable window you can change the Speed_Command variable to increase and decrease the motor speed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="font-size: 15px; color: #333333;"&gt;With the motor running, we can do some additional verification with the oscilloscope directly on the motor windings.&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; border-width: 1px; border-color: #ffffff;" width="100%"&gt;
&lt;TBODY style="border: inherit solid inherit;"&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD colspan="2" style="width: 49.308%; text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_10.png" style="width: 800px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11970iA8F4CB0817FFC480/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_10.png" alt="pastedImage_10.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border: inherit solid inherit;"&gt;
&lt;TD colspan="2" style="width: 49.308%; text-align: center;"&gt;&lt;SPAN style="font-size: 13px;"&gt;Fig. 28: Phase A &amp;amp;B terminal voltages&amp;nbsp;and Line A-B resulting voltage. Check&amp;nbsp;&lt;A href="https://community.nxp.com/thread/466420" target="_blank" rel="noopener noreferrer"&gt;Module 4: Space Vector Modulation&lt;/A&gt;&amp;nbsp;for details&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; padding: 0in; color: #000080; font-weight: bold; font-size: 22px;"&gt;&lt;STRONG&gt;CONCLUSIONS&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;In V/F scalar control the stator currents are not controlled directly. A&amp;nbsp;V/F controlled PMSM can become unstable easily especially when the load torque increases.&amp;nbsp;Considering its disadvantages the V/F scalar control is not suitable for low speed control&amp;nbsp;in high dynamic applications but might be a good choice&amp;nbsp;for&amp;nbsp;PMSM&amp;nbsp;used for HVAC applications, where high performance is not required.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;In general, open loop V/f control is not stable in the whole frequency range, it may become&amp;nbsp;unstable, even at no-load, from a certain excitation frequencies lower than the rated speed. To address such use-cases, it is necessary to have a stabilizing loop in the system. This stabilizing loop can be implemented by means of an speed measurement system, increasing cost, and complexity.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="color: #333333;"&gt;At point we have reached our main goal and we now have a control simple method to spin the PMSM in open loop. We've validated the PWM generation techniques and we are now ready for the next step: implementing a proper Field Oriented Control technique for PMSM.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&lt;SPAN style="background-color: #ffffff; color: #333333;"&gt;We hope you find this information useful. Feel free to LIKE this article and comment below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&lt;STRONG&gt;Update January 28th 2019 -&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;This&amp;nbsp;Simulink model is now available on MATLAB 2018b and MBDT for S32K14x 2018.R1 release&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Before using the new models make sure you apply all the hot-patches from here:&amp;nbsp;&lt;A href="https://community.nxp.com/thread/489947" target="_blank" rel="noopener noreferrer"&gt;HotFix: MBD Toolbox 2018.R1 for S32K&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 2pt 0in;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 12pt;"&gt;&lt;SPAN style="border: 0px; font-weight: bold; font-size: 16px;"&gt;&lt;STRONG&gt;Update revisions&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 2pt 0in;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 11.5pt;"&gt;March&amp;nbsp;18, 2019&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;
&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px 0.0001pt;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 12pt;"&gt;update the model&amp;nbsp;to work with&amp;nbsp;&lt;A style="color: #3d9ce7; background-color: transparent; border: 0px; font-weight: inherit; font-size: 16px; padding: 1px 0px 1px calc(12px + 0.35ex);" href="https://community.nxp.com/docs/DOC-342724" target="_blank" rel="noopener noreferrer" data-objecttype="102"&gt;&lt;SPAN style="color: blue; border: 0px; font-weight: inherit; font-size: 16px;"&gt;Model-Based Design Toolbox for MPC57xx Automotive Version 3.0.0&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp; .&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 2pt 0in;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 11.5pt;"&gt;May 06, 2020&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;
&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px 0.0001pt;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 12pt;"&gt;update the model&amp;nbsp;to work with&amp;nbsp;&lt;A style="color: #3d9ce7; background-color: transparent; border: 0px; font-weight: inherit; font-size: 16px; padding: 1px 0px 1px calc(12px + 0.35ex);" href="https://community.nxp.com/docs/DOC-346265" target="_blank" rel="noopener noreferrer" data-objecttype="102"&gt;&lt;SPAN style="color: blue; border: 0px; font-weight: inherit; font-size: 16px;"&gt;Model-Based Design Toolbox for MPC57xx Automotive Version 3.2.0&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp; .&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 15 Jan 2021 06:25:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726087#M1488</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2021-01-15T06:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Module 5: V/F Scalar Control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726088#M1489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &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;first of all thank you for your great Job !&lt;/P&gt;&lt;P&gt;As I've said before I want to follow your Workshop based on the High Voltage Platform HVP-MC3PH with the KV4x controller.&lt;/P&gt;&lt;P&gt;So I want to replace the Hardware specific blocks.&lt;/P&gt;&lt;P&gt;You have designed the model in R2017b,&amp;nbsp;my release is R2017a, so I can't open your model.&lt;/P&gt;&lt;P&gt;Would&amp;nbsp;it be&amp;nbsp;possible to share it also in&amp;nbsp;the previous release R2017a ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 13:04:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726088#M1489</guid>
      <dc:creator>lethuer</dc:creator>
      <dc:date>2018-01-23T13:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Module 5: V/F Scalar Control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726089#M1490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f;"&gt;Hi,&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="27829" data-objecttype="3" href="https://community.nxp.com/people/dumitru-daniel.popa" style="color: #5e89c1; background-color: #ffffff; border: 0px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;dumitru-daniel.popa&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really like this article, I downloaded the attachment M5 and wanted to start with the simulation, but when I clicked on VF_control_SIM.slx, I got the following question:&lt;BR /&gt;1, Undefined variable "fltRampUp" "fltRampDown" is used in VF_control_SIM / S32K14x EVB / Slow Loop Control / GFLIB_Ramp_FLT. Although other variables do not report an error, I want to know how you defined them.&lt;BR /&gt;2, &amp;nbsp;The floating oscilloscope, when I double-click it, there is a "reference to the non-existent field axes2" error, then double-click will never open.&lt;BR /&gt;These two problems have always existed, I do not know how to change, I use the matlab version 2014b.&lt;/P&gt;&lt;P&gt;If you have any possible help, please tell me, thank you&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20995i6092391B83D97030/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;wangxuan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 01:37:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726089#M1490</guid>
      <dc:creator>wangxuan</dc:creator>
      <dc:date>2018-01-24T01:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Module 5: V/F Scalar Control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726090#M1491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simulink 2015b models used in lecture in case you need to open/import them in older MATLAB versions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 08:06:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726090#M1491</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2018-01-24T08:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Module 5: V/F Scalar Control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726091#M1492</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;Thank you for your appreciation. In order to help you and others, I've exported the model with Simulink 2015b (the oldest version supported by the NXP Toolbox). The models are here:&amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/thread/467938?commentID=980431#comment" title="https://community.nxp.com/message/980431?commentID=980431#comment-980431"&gt;https://community.nxp.com/message/980431?commentID=980431#comment-980431&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you can import them in the newer versions of MATLAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 08:10:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726091#M1492</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2018-01-24T08:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Module 5: V/F Scalar Control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726092#M1493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wangxuan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to use the model attached ***_2014a (i've exported to this version but did not try it since i do not have such old version)&lt;/P&gt;&lt;P&gt;I think some of the issues are due to import operation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I the original model the RAMP block is configured as:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24573i13C3B9E613CD2199/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You could define those parameters in the MATLAB workspace or Model workspace is case you need to parametrize them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the second issue - regarding the floating scope - i do not know what that might be. Again might be due to import from new-&amp;gt;old version of MATLAB. Try the model i've added and if still happens then you could try to redue the scope or simple use a standard one to display the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 08:19:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726092#M1493</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2018-01-24T08:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Module 5: V/F Scalar Control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726093#M1494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &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;I've installed R2017b on another laptop for saving the model in version 2017a.&lt;/P&gt;&lt;P&gt;But if I want to simulate your 2017b model I get this error message:&lt;/P&gt;&lt;P&gt;&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/27350iAD570C629EBD3571/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;&lt;/P&gt;&lt;P&gt;Any recommendations to fix it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 19:27:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726093#M1494</guid>
      <dc:creator>lethuer</dc:creator>
      <dc:date>2018-01-24T19:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Module 5: V/F Scalar Control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726094#M1495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/lethuer2"&gt;lethuer2&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;I think you are using the an older toolbox version for S32K product family - most likely version 2.0.0 which does not have support for 2017b. In 2017b, Mathworks has changed the API. If you install the version 3.0.0&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-335555"&gt;https://community.nxp.com/docs/DOC-335555&lt;/A&gt;&amp;nbsp;you will have it working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 19:58:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726094#M1495</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2018-01-24T19:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Module 5: V/F Scalar Control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726095#M1496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&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;sorry for asking again !&lt;/P&gt;&lt;P&gt;After installation &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;the &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;version 3.0.0&amp;nbsp;&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="11546" data-containertype="14" data-content-finding="Community" data-objectid="335555" data-objecttype="102" href="https://community.nxp.com/docs/DOC-335555" style="color: #5e89c1; background-color: #ffffff; border: 0px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;Model-Based Design Toolbox for S32K1xx Automotive MCU v3.0.0&lt;/A&gt;&amp;nbsp;I have some trouble with the license file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I generated a new license file and saved it with the file extension .lic to this folder:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;C:\Users\Username\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\code\lic&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;But after simulating your PMSM Module 5 model I get this error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26873i42E7953044A74A4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really don't know how to solve the problem...&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 21:48:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726095#M1496</guid>
      <dc:creator>lethuer</dc:creator>
      <dc:date>2018-01-24T21:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Module 5: V/F Scalar Control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726096#M1497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hi,&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="27829" data-objecttype="3" href="https://community.nxp.com/people/dumitru-daniel.popa" style="color: #5e89c1; background-color: #ffffff; border: 0px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;dumitru-daniel.popa&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;As you suggested, I modified my model, removed the high version of the Floating scope, added new ones, and worked fine. According to your method, the parameters of the RAMP block have been defined in the MATLAB workspace and the problem has been successfully solved. After learning, I have a few questions to ask you because I am following this example to simulate my target HVP-KV46F150. Thank you very much.&lt;BR /&gt;1, &lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;UQ_REF the value is obtained from a Look-Up-Table (LUT) that implement the concept of V/F scalar control.&lt;/SPAN&gt;but I do not know how the parameters are calculated, in relation to the derived equation u_d / f = (2π) ∙ (L_d i_d + ψ_PM). I want to use HVP-MC3PH, motor parameters are as follows (blue background), how to modify the parameters?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27068iF29A0AFEDB63CAEE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="width: 736px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 26px;"&gt;&lt;TD style="border: 1pt solid #999999; padding: 5.25pt; width: 104px; height: 26px;"&gt;&lt;P&gt;motor model&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: 1pt solid #999999; border-right: 1pt solid #999999; border-bottom: 1pt solid #999999; border-image: initial; border-left: none; background: #d9e2f3; padding: 5.25pt; width: 100px; height: 26px;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: #444444;"&gt;60ST-M01330&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 26px;"&gt;&lt;TD style="border-right: 1pt solid #999999; border-bottom: 1pt solid #999999; border-left: 1pt solid #999999; border-image: initial; border-top: none; padding: 5.25pt; width: 104px; height: 26px;"&gt;&lt;P&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;Rated power （&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;W&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;）&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: 1pt solid #999999; border-right: 1pt solid #999999; background: #d9e2f3; padding: 5.25pt; width: 100px; height: 26px;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: #444444;"&gt;400&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 26px;"&gt;&lt;TD style="border-right: 1pt solid #999999; border-bottom: 1pt solid #999999; border-left: 1pt solid #999999; border-image: initial; border-top: none; padding: 5.25pt; width: 104px; height: 26px;"&gt;&lt;P&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;Rated line voltage（&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;V&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;）&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: 1pt solid #999999; border-right: 1pt solid #999999; background: #d9e2f3; padding: 5.25pt; width: 100px; height: 26px;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: #444444;"&gt;220&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 26px;"&gt;&lt;TD style="border-right: 1pt solid #999999; border-bottom: 1pt solid #999999; border-left: 1pt solid #999999; border-image: initial; border-top: none; padding: 5.25pt; width: 104px; height: 26px;"&gt;&lt;P&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;Rated line current（&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;A&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;）&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: 1pt solid #999999; border-right: 1pt solid #999999; background: #d9e2f3; padding: 5.25pt; width: 100px; height: 26px;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: #444444;"&gt;2.8&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 26px;"&gt;&lt;TD style="border-right: 1pt solid #999999; border-bottom: 1pt solid #999999; border-left: 1pt solid #999999; border-image: initial; border-top: none; padding: 5.25pt; width: 104px; height: 26px;"&gt;&lt;P&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;Rated speed（&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;rpm&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;）&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: 1pt solid #999999; border-right: 1pt solid #999999; background: #d9e2f3; padding: 5.25pt; width: 100px; height: 26px;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: #444444;"&gt;3000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 26px;"&gt;&lt;TD style="border-right: 1pt solid #999999; border-bottom: 1pt solid #999999; border-left: 1pt solid #999999; border-image: initial; border-top: none; padding: 5.25pt; width: 104px; height: 26px;"&gt;&lt;P&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;Rated torque（&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;N.m&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;）&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: 1pt solid #999999; border-right: 1pt solid #999999; background: #d9e2f3; padding: 5.25pt; width: 100px; height: 26px;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: #444444;"&gt;1.27&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 26px;"&gt;&lt;TD style="border-right: 1pt solid #999999; border-bottom: 1pt solid #999999; border-left: 1pt solid #999999; border-image: initial; border-top: none; padding: 5.25pt; width: 104px; height: 26px;"&gt;&lt;P&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;Peak torque（&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;N.m&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;）&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: 1pt solid #999999; border-right: 1pt solid #999999; background: #d9e2f3; padding: 5.25pt; width: 100px; height: 26px;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: #444444;"&gt;3.8&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 26px;"&gt;&lt;TD style="border-right: 1pt solid #999999; border-bottom: 1pt solid #999999; border-left: 1pt solid #999999; border-image: initial; border-top: none; padding: 5.25pt; width: 104px; height: 26px;"&gt;&lt;P&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;Back EMF（&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;V/krpm&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;）&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: 1pt solid #999999; border-right: 1pt solid #999999; background: #d9e2f3; padding: 5.25pt; width: 100px; height: 26px;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: #444444;"&gt;28&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 26px;"&gt;&lt;TD style="border-right: 1pt solid #999999; border-bottom: 1pt solid #999999; border-left: 1pt solid #999999; border-image: initial; border-top: none; padding: 5.25pt; width: 104px; height: 26px;"&gt;&lt;P&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;Torque coefficient（&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;N.m/A&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;）&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: 1pt solid #999999; border-right: 1pt solid #999999; background: #d9e2f3; padding: 5.25pt; width: 100px; height: 26px;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: #444444;"&gt;0.5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 27px;"&gt;&lt;TD style="border-right: 1pt solid #999999; border-bottom: 1pt solid #999999; border-left: 1pt solid #999999; border-image: initial; border-top: none; padding: 5.25pt; width: 104px; height: 27px;"&gt;&lt;P&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;Rotor inertia（&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;Kg.m2&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;）&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: 1pt solid #999999; border-right: 1pt solid #999999; background: #d9e2f3; padding: 5.25pt; width: 100px; height: 27px;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: #444444;"&gt;0.302×10&lt;SUP style="border: none windowtext 1.0pt; padding: 0cm;"&gt;-4&lt;/SUP&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 26px;"&gt;&lt;TD style="border-right: 1pt solid #999999; border-bottom: 1pt solid #999999; border-left: 1pt solid #999999; border-image: initial; border-top: none; padding: 5.25pt; width: 104px; height: 26px;"&gt;&lt;P&gt;Winding (Line) Resistance &lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;（&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;Ω&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;）&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: 1pt solid #999999; border-right: 1pt solid #999999; background: #d9e2f3; padding: 5.25pt; width: 100px; height: 26px;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: #444444;"&gt;5.83&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 26px;"&gt;&lt;TD style="border-right: 1pt solid #999999; border-bottom: 1pt solid #999999; border-left: 1pt solid #999999; border-image: initial; border-top: none; padding: 5.25pt; width: 104px; height: 26px;"&gt;&lt;P&gt;Winding (Line) Inductance&amp;nbsp; &lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;（&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;mH&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;）&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: 1pt solid #999999; border-right: 1pt solid #999999; background: #d9e2f3; padding: 5.25pt; width: 100px; height: 26px;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: #444444;"&gt;12.23&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 26px;"&gt;&lt;TD style="border-right: 1pt solid #999999; border-bottom: 1pt solid #999999; border-left: 1pt solid #999999; border-image: initial; border-top: none; padding: 5.25pt; width: 104px; height: 26px;"&gt;&lt;P&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;Electrical time constant&amp;nbsp;（&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;ms&lt;/STRONG&gt;&lt;STRONG style="color: #00b0f0; font-size: 9.0pt;"&gt;）&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: 1pt solid #999999; border-right: 1pt solid #999999; background: #d9e2f3; padding: 5.25pt; width: 100px; height: 26px;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: #444444;"&gt;2.1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;2, in the PWM Commands module, PWM_A / B / C * 1000 (FullON_DutyCycle), why is it to match the real&lt;/P&gt;&lt;P&gt;HW MBDT configuration?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27446i9DE51C4A83147695/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;3, KV4 GFLIB, GMCLIB, GDFLIB tool library and K32 can share?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27485i8D9049C9FF0085D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;BR /&gt;4, I do not quite understand the three-phase inverter model, but it should be the output of the three-phase stator voltage reference value, right, 500 (PWM_center_offset) Why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are like my teacher, pay tribute！&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thank you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Best regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;wangxuan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 07:54:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726096#M1497</guid>
      <dc:creator>wangxuan</dc:creator>
      <dc:date>2018-01-25T07:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Module 5: V/F Scalar Control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726097#M1498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's strange!&lt;/P&gt;&lt;P&gt;You could try to RESET the MATLAB default paths to DEFAULT using the Set Path menu to remove all previous toolboxes from the path (how to here: &lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/thread/449904#comment-908457" title="https://community.nxp.com/thread/449904#comment-908457"&gt;https://community.nxp.com/thread/449904#comment-908457&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27575i46C8CEE7755FB200/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you could simply run the mbd_s32K_path.m to add the S32K1xx into MATLAB.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27525i6BA9D0779320EA0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All these actions are needed to make sure the MATLAB is using the correct paths to the latest toolbox you have installed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will resolve the issue.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 09:45:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726097#M1498</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2018-01-25T09:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Module 5: V/F Scalar Control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726098#M1499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;W&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;angxuan,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="color: #333333; border: 0px;"&gt;UQ_REF the value is obtained from a Look-Up-Table (LUT) that implement the concept of V/F scalar control.&lt;/SPAN&gt;&lt;SPAN&gt;but I do not know how the parameters are calculated, in relation to the derived equation u_d / f = (2π) ∙ (L_d i_d + ψ_PM). I want to use HVP-MC3PH, motor parameters are as follows (blue background), how to modify the parameters?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That equation is for justifying the mathematical model behing the V/F method and why it can work.&lt;/P&gt;&lt;P&gt;In practice the computations relies on the actual motor rated values for Voltage and Speed(aka frequency)&lt;/P&gt;&lt;P&gt;For your motor the rated values are:&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;IMG alt="pastedImage_3.png" src="https://community.nxp.com/t5/image/serverpage/image-id/27657i417A0F347EB0D658/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_3.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;IMG alt="pastedImage_4.png" src="https://community.nxp.com/t5/image/serverpage/image-id/28231i8E2A834BC59EA8CF/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_4.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Keep in mind that via the Inverter we control the Phase Voltage.&lt;/P&gt;&lt;P&gt;Depending on your motor connection the relation between Line and Phase is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Y(star) V_line = sqrt(3) V_phase&lt;/LI&gt;&lt;LI&gt;D(delta) V_line = V_phase&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "rated" frequency can be obtained from the rated speed&lt;/P&gt;&lt;P&gt;f_rated [Hz] = Speed_rated [rpm] * pp / 60&lt;/P&gt;&lt;P&gt;If you have a single pole pair configuration: f_rated[Hz] = 3000 * 1 / 60 = 50Hz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, now you have the 2 values you need for Voltage and Frequency to build your LUT as shown in&amp;nbsp;&lt;STRONG style="background-color: #ffffff; color: #333333;"&gt;Fig. 2:&amp;nbsp;V/F profile practical aspects&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The zone 1 - needs to be determined experimental based on your particular setup.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, keep in mind that all Voltage values used for internal control computations must be scaled between -1 to 1 to avoid any overflows - so UQ_REF maximal value is 1. This corresponds to the maximal value of the Phase_Voltage that is supported by your motor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example in the model i've used the 0.9 corresponds to the maximal voltage i'm going to apply for the motor phase. Using a 12V DC power supply then the actual phase voltage allowed in this model is: 0.9 * Vdc/2 = 0.9 * 12 / 2 = 5.4 Volts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, from the LUT - i'm going to apply 5.4V on phase if the desired speed is 5000rpm&lt;/P&gt;&lt;P&gt;To start the spinning i'm going to apply 0.4 * 12/2 = 2.4V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="danger" __jive_macro_name="alert" alert="danger" class="jive_text_macro jive_macro_alert" modifiedtitle="true"&gt;&lt;P&gt;Keep in mind that you should only apply higher voltage ONLY when the motor spins. If the motor is not stared to spin and you apply high voltage from the start - then since there is no back-emf - you are going to have a huuuge current flowing thru the motor and inverter. There is a potential danger to destroy them.&lt;/P&gt;&lt;/PRE&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;in the PWM Commands module, PWM_A / B / C * 1000 (FullON_DutyCycle), why is it to match the real&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;HW MBDT configuration?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The SVM block computes the duty cycles as values between (0 - 1) Normally this should be scaled to (0 - 100) to be used as output for&amp;nbsp;FTM_Three_Phase_Output block&lt;/P&gt;&lt;P&gt;Since the FTM block is set to generate the PWM signal with a 0.1% resolution - then you need to multiply with 1000. This can be changed based on your particular needs.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_9.png"&gt;&lt;IMG alt="pastedImage_9.png" src="https://community.nxp.com/t5/image/serverpage/image-id/28150i8534F345C2926DF4/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_9.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;KV4 GFLIB, GMCLIB, GDFLIB tool library and K32 can share?&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No, the libraries are different - but there are same functionalities between these 2 toolboxes (the toolbox for Kinetis is a bit older). All you have to do is to re-implement the model this blocks for KV4 library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I do not quite understand the three-phase inverter model, but it should be the output of the three-phase stator voltage reference value, right, 500 (PWM_center_offset) Why?&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;SVM defines 2 null vectors - see&amp;nbsp;&lt;A href="https://community.nxp.com/thread/466420" rel="noopener noreferrer" target="_blank"&gt;Module 4: Space Vector Modulation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you need 0 voltage at the inverter legs - you set a 50% duty cycle of the PWMs that controls the upper and lower switches. Since i've used a 0.1% resolution for PWM duty cyles that means 500 represent the 0v.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_16.png"&gt;&lt;IMG alt="pastedImage_16.png" src="https://community.nxp.com/t5/image/serverpage/image-id/28193iBE3DDC414957537E/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_16.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Anything above mid-point is a positive voltage and anything below is a negative voltage.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps! &amp;amp; thanks for appreciation.&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:02:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726098#M1499</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2020-11-02T14:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Module 5: V/F Scalar Control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726099#M1500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hi,&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="27829" data-objecttype="3" href="https://community.nxp.com/people/dumitru-daniel.popa" style="color: #5e89c1; background-color: #ffffff; border: 0px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;dumitru-daniel.popa&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I saw your reply I understand, very useful, thank you. I saw that the toolbox for Kinetis is really not as rich as K32, just as GFLIB_Ramp_FLT was not found in the KV4 library, how can I replace it? Also, why in the KV4 library, &amp;nbsp;the models are GFLIB _ **** _ F16, F16 represents the meaning of 16 bits? However, KV46 is 32 MCU, I do not know, thank you.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28523i035AB77A99BE5AE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 12:13:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726099#M1500</guid>
      <dc:creator>wangxuan</dc:creator>
      <dc:date>2018-01-25T12:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Module 5: V/F Scalar Control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726100#M1501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/wangxuan"&gt;wangxuan&lt;/A&gt;‌ &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;Because I want to implement the workshop also based on HVP-MC3PH i've replaced the S32K blocks with the KV4x blocks and I've attached my model.&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/28929i06FB2919909C9128/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;&lt;/P&gt;&lt;P&gt;But unfortunately the KV4x library doesn't have single type precison (only 16 Bit). Because of that there are some data type conversation required. In the fast Loop control Subsystem this leads to some trouble with Cos, Sin&amp;nbsp;and ParkInv Block:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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/29021i9BF10F1A73B2F0AA/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;&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/28983iEE4F18DB9BF7DE6A/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;&lt;/P&gt;&lt;P&gt;In the KV4x library I didn't found a SinCos Block, so I've used one Sin Block and one Cos Block. The entry of them is the blue signal from picture above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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/29063iE8DA04464D68EC00/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;&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/29145i30A58AED0B4BD605/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;The Output from the Sin Block is always 0, the Output from Cos is always 3,25*10^4.&lt;/P&gt;&lt;P&gt;&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/28984i5DCA97CAE4916628/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;&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/29192i60FFB8EB7469DEEB/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;The conversation of UQ_Ref leads to 0 instead of values between 0.4...0.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So all entrys of the ParkInv Block are wrong and it can't work correctly.&lt;/P&gt;&lt;P&gt;Alpha and Beta are always 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 14:21:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726100#M1501</guid>
      <dc:creator>lethuer</dc:creator>
      <dc:date>2018-01-25T14:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Module 5: V/F Scalar Control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726101#M1502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the Embedded target model we also have to replace&amp;nbsp;the Hardware specific blocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Driver&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The 3-ph Driver FNB41560 has no enable or reset signals.&lt;/P&gt;&lt;P&gt;But here we should at least observe the Fault1 (Motor over current, pfc over current and dc bus under voltage - active low) &amp;amp; Fault2 (overvoltage - active high)&amp;nbsp;signals.&lt;/P&gt;&lt;P&gt;Additionally I would recommend to&amp;nbsp;monitor the IPM_Temp Signal to protect overheating.&lt;/P&gt;&lt;P&gt;If one of them occurs the PWM has to be stopped !&lt;/P&gt;&lt;P&gt;Any further recommendations for that ?&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/28809i4DC2E288FD8254AF/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;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. PWM Signal Generation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For the PWM Output I've implement the "eFlexPWM_Three_Phase_Output"&lt;/P&gt;&lt;P&gt;Where is the difference to "FTM_Three_Phase_Output" ?&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/28811i7547784B13599200/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;Resolution is set to 0.1% and Deadtime 1500 nanoseconds (see datasheet extract).&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/28935i544C45358DCDFE88/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;&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/28642i52EFD7F071A7FC77/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unbenannt.PNG" alt="Unbenannt.PNG" /&gt;&lt;/span&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/28896i172DE82890379953/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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. FreeMASTER&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;There is the FreeMASTER Config block, which I can't find in the KV4x library.&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/28534iDE5D76D3F0A4887F/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;So I think we have to configure it in the MCD_MKV4xF_Config ?&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/28609i19AE088606CF67C4/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 here I don't have these Options:&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/29108iC8E336FD222A45EB/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;So how I could configure freemaster in short Interrupt mode ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Fast Loop there is a "FreeMaster_Recorder_Call" Block. Also this one I didn't found in the KV4x library.&lt;/P&gt;&lt;P&gt;What&amp;nbsp;I have to choose&amp;nbsp;here ?&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/28645iA33FAA3A66F78F2B/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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I have found this test Points in the fast Loop control:&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/29071i4C50E1A778A25DFC/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;Could you please explain the meaning of it ?&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, 25 Jan 2018 16:40:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726101#M1502</guid>
      <dc:creator>lethuer</dc:creator>
      <dc:date>2018-01-25T16:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Module 5: V/F Scalar Control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726102#M1503</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;also this didn't solve the problem...&lt;/P&gt;&lt;P&gt;Still this buil error:&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/29288i5868AD43E065F87C/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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In R2017b now only the S32K library is implemented.&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/29327i258F26C94404468B/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;&lt;/P&gt;&lt;P&gt;The license file is saved as .lic and the path was prepended successful.&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/29369i86E6D75026021BD5/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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the content of the license file:&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/29212i907378D68E084E95/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;I would excpect MC_toolbox_S32K freescale&lt;STRONG&gt; 3.0.0&lt;/STRONG&gt; ???&lt;/P&gt;&lt;P&gt;I had generated it here:&lt;/P&gt;&lt;P&gt;&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/29418i01013461A5AC7EB0/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;&lt;/P&gt;&lt;P&gt;Thank you for help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 17:58:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726102#M1503</guid>
      <dc:creator>lethuer2</dc:creator>
      <dc:date>2018-01-25T17:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Module 5: V/F Scalar Control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726103#M1504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi &lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="307831" data-objecttype="3" href="https://community.nxp.com/people/lethuer2" style="color: #5e89c1; background-color: #ffffff; border: 0px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;Leon Thürnau&lt;/A&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;,&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="27829" data-objecttype="3" href="https://community.nxp.com/people/dumitru-daniel.popa" style="color: #5e89c1; border: 0px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;dumitru-daniel.popa&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; I have reviewed your comment, which is of great help to me and in many places I did not think of it. I use HVP-MC3PH and HVP-KV46 just like you, but I have not purchased PMSM motor. I think my first step is to do simulation in MATLAB environment. The motor is also virtual, so it is only the verification control algorithm. I feel like we are teammates, our ultimate goal is to make our motor run safely and smoothly.&lt;BR /&gt;Seeing your modified model and problem bothering me as well, I also know that FreeMaster_Data_Recorder was found in the library with the following path:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29301i7131C59B6D487BCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29331i6CD9FE3FEB2389CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29435i30C04EF26A0C15A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible, I hope to have more help with KV4.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;wangxuan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 01:17:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726103#M1504</guid>
      <dc:creator>wangxuan</dc:creator>
      <dc:date>2018-01-26T01:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Module 5: V/F Scalar Control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726104#M1505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wang Xuan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since that is an older toolbox - it is not as rich as the S32K.&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;&amp;nbsp; &lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;GFLIB_Ramp_FLT was not found in the KV4 library, how can I replace it?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The GFLIB_Ramp function limits the rate of change of the input signal. If the desired (input) value is greater than the ramp output value, the function adds the&lt;BR /&gt;RampUp value to the actual output value. The output cannot be greater than the desired&amp;nbsp;value.&lt;BR /&gt;If the desired value is lower than the actual value, the function subtracts the RampDown&amp;nbsp;value from the actual value. The output cannot be lower than the desired value.&lt;BR /&gt;Functionality of the implemented ramp algorithm can be explained&amp;nbsp;in this diagram:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29725i9822372D4F91EEBE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can easily implement this functionality with standard Simulink block by taking into account the model sample time.&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;Also, why in the KV4 library, &amp;nbsp;the models are GFLIB _ **** _ F16, F16 represents the meaning of 16 bits?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;F16 represent the notation for&amp;nbsp;&lt;STRONG&gt;F&lt;/STRONG&gt;ixed-point &lt;STRONG&gt;16&lt;/STRONG&gt;-bit fractional: &amp;lt;-1; 1-2-15&amp;gt; in Q1.15 format and with minimum&amp;nbsp;positive normalized value 2^(-15)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 08:29:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726104#M1505</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2018-01-26T08:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Module 5: V/F Scalar Control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726105#M1506</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;P&gt;All the steps are OK. The license version is correct and keywords are correct.&lt;/P&gt;&lt;P&gt;Two thinks you could try:&lt;/P&gt;&lt;P&gt;#1: rename the license.lic -&amp;gt; license.dat&lt;/P&gt;&lt;P&gt;or/and&lt;/P&gt;&lt;P&gt;#2: add the lic folder manually to the Matlab paths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If none of the above does not work - them i'm afraid i'm running out of suggestions.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 09:07:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726105#M1506</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2018-01-26T09:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Module 5: V/F Scalar Control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726106#M1507</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;I this case you need to design the entire algoritm to work on 16bit values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would suggest to start with the input values and compute them as&amp;nbsp;fixed-point 16-bit fractional and avoid the Simulink Data Type Conversion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to do that conversion - then you have to do it by multiplication and shifting rather than casting. Simulink Data Type Conversion will not help you in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 09:16:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-5-V-F-Scalar-Control/m-p/726106#M1507</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2018-01-26T09:16:35Z</dc:date>
    </item>
  </channel>
</rss>

