<?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 unknown type name 'rtDW_ComputeElectricAngle_ADC_Sensing_g_T' in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/unknown-type-name-rtDW-ComputeElectricAngle-ADC-Sensing-g-T/m-p/923239#M3406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am using Matlab Simulink R2019a and stepped through the 3-Phase PMSM Control Workshop (&lt;A href="https://community.nxp.com/thread/464336"&gt;-Phase PMSM Control Workshop with NXP's Model-Based Design Toolbox )&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I automatically converted the project to be compatible with the newer Matlab version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to fix the following error:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'DejaVu Sans Mono', 'Courier New', Inconsolata; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;FTM PWM Disable Enable block '&lt;/SPAN&gt;&lt;A href="matlab:das_dv_hyperlink('DAS','mdl','ADC_Sensing/S32K14x EVB/FastLoopControl/PWMCommands/Control_Logic/t2_init/FTM_PWM_Disable_Enable')" style="color: blue; font-family: Consolas, 'DejaVu Sans Mono', 'Courier New', Inconsolata; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;ADC_Sensing/S32K14x EVB/FastLoopControl/PWMCommands/Control_Logic/t2_init/FTM_PWM_Disable_Enable&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'DejaVu Sans Mono', 'Courier New', Inconsolata; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;' has no FTM PWM Config block&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This was done quite easily. I had to change the Module from 0 to 3 in all "FTM PWM Enable Disable" blocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem now are compiler errors.&lt;/P&gt;&lt;P&gt;Unfortunately I can't get the Modules M6, M7, M8 and M9 running due to compiler errors now.&lt;/P&gt;&lt;P&gt;The errors are getting longer and longer from M6 to M9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The errors for M6 are this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'DejaVu Sans Mono', 'Courier New', Inconsolata; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;In file included from pdb1_isr.h:2:0, from ADC_Sensing.h:44, from ADC_Sensing.c:19: ADC_Sensing_private.h:91:24: error: unknown type name 'rtDW_ComputeElectricAngle_ADC_Sensing_g_T' real32_T *rty_theta, rtDW_ComputeElectricAngle_ADC_Sensing_g_T *localDW); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ADC_Sensing_private.h:92:52: error: unknown type name 'rtB_SPI_Comm_ADC_Sensing_g_T' extern void ADC_Sensing_SPI_Comm(uint8_T rtu_Data, rtB_SPI_Comm_ADC_Sensing_g_T * ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ADC_Sensing_private.h:117:3: error: unknown type name 'rtDW_SlowLoopControl_ADC_Sensing_T' rtDW_SlowLoopControl_ADC_Sensing_T *localDW, real32_T *rtd_SPEED_CMD, real32_T ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gmake: *** [ADC_Sensing.o] Error 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I solve this error? Is it due to compatibility problems with R2019a?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Aug 2019 07:45:28 GMT</pubDate>
    <dc:creator>s_kirchmeyr</dc:creator>
    <dc:date>2019-08-14T07:45:28Z</dc:date>
    <item>
      <title>unknown type name 'rtDW_ComputeElectricAngle_ADC_Sensing_g_T'</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/unknown-type-name-rtDW-ComputeElectricAngle-ADC-Sensing-g-T/m-p/923239#M3406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am using Matlab Simulink R2019a and stepped through the 3-Phase PMSM Control Workshop (&lt;A href="https://community.nxp.com/thread/464336"&gt;-Phase PMSM Control Workshop with NXP's Model-Based Design Toolbox )&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I automatically converted the project to be compatible with the newer Matlab version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to fix the following error:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'DejaVu Sans Mono', 'Courier New', Inconsolata; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;FTM PWM Disable Enable block '&lt;/SPAN&gt;&lt;A href="matlab:das_dv_hyperlink('DAS','mdl','ADC_Sensing/S32K14x EVB/FastLoopControl/PWMCommands/Control_Logic/t2_init/FTM_PWM_Disable_Enable')" style="color: blue; font-family: Consolas, 'DejaVu Sans Mono', 'Courier New', Inconsolata; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;ADC_Sensing/S32K14x EVB/FastLoopControl/PWMCommands/Control_Logic/t2_init/FTM_PWM_Disable_Enable&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'DejaVu Sans Mono', 'Courier New', Inconsolata; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;' has no FTM PWM Config block&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This was done quite easily. I had to change the Module from 0 to 3 in all "FTM PWM Enable Disable" blocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem now are compiler errors.&lt;/P&gt;&lt;P&gt;Unfortunately I can't get the Modules M6, M7, M8 and M9 running due to compiler errors now.&lt;/P&gt;&lt;P&gt;The errors are getting longer and longer from M6 to M9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The errors for M6 are this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'DejaVu Sans Mono', 'Courier New', Inconsolata; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;In file included from pdb1_isr.h:2:0, from ADC_Sensing.h:44, from ADC_Sensing.c:19: ADC_Sensing_private.h:91:24: error: unknown type name 'rtDW_ComputeElectricAngle_ADC_Sensing_g_T' real32_T *rty_theta, rtDW_ComputeElectricAngle_ADC_Sensing_g_T *localDW); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ADC_Sensing_private.h:92:52: error: unknown type name 'rtB_SPI_Comm_ADC_Sensing_g_T' extern void ADC_Sensing_SPI_Comm(uint8_T rtu_Data, rtB_SPI_Comm_ADC_Sensing_g_T * ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ADC_Sensing_private.h:117:3: error: unknown type name 'rtDW_SlowLoopControl_ADC_Sensing_T' rtDW_SlowLoopControl_ADC_Sensing_T *localDW, real32_T *rtd_SPEED_CMD, real32_T ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gmake: *** [ADC_Sensing.o] Error 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I solve this error? Is it due to compatibility problems with R2019a?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2019 07:45:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/unknown-type-name-rtDW-ComputeElectricAngle-ADC-Sensing-g-T/m-p/923239#M3406</guid>
      <dc:creator>s_kirchmeyr</dc:creator>
      <dc:date>2019-08-14T07:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: unknown type name 'rtDW_ComputeElectricAngle_ADC_Sensing_g_T'</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/unknown-type-name-rtDW-ComputeElectricAngle-ADC-Sensing-g-T/m-p/923240#M3407</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/s.kirchmeyr@abatec.at"&gt;s.kirchmeyr@abatec.at&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PWM Enable Disable block must be used alongside with a PWM config block for a certain module, as you've already done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What MBDT version are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form the provided log, I assume that inside of the s-function triggered by the PDB interrupt block, there are some ADC read blocks used, so I assume that changing the Code generation function packaging from Auto to Inline or Reusable function might solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marius&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2019 11:36:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/unknown-type-name-rtDW-ComputeElectricAngle-ADC-Sensing-g-T/m-p/923240#M3407</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2019-08-14T11:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: unknown type name 'rtDW_ComputeElectricAngle_ADC_Sensing_g_T'</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/unknown-type-name-rtDW-ComputeElectricAngle-ADC-Sensing-g-T/m-p/923241#M3408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using version 4.1.0 of the MBDT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function packaging of the block "ADC_Sensing &amp;gt; S32K14x EVB &amp;gt; ADC Sensing &amp;gt; ADC1_IRQHandler" is already set to "Reuseable function". I played around a little bit with some other options and other functions and blocks, but I could not get rid of the error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2019 12:41:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/unknown-type-name-rtDW-ComputeElectricAngle-ADC-Sensing-g-T/m-p/923241#M3408</guid>
      <dc:creator>s_kirchmeyr</dc:creator>
      <dc:date>2019-08-14T12:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: unknown type name 'rtDW_ComputeElectricAngle_ADC_Sensing_g_T'</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/unknown-type-name-rtDW-ComputeElectricAngle-ADC-Sensing-g-T/m-p/923242#M3409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the same problem.&amp;nbsp; I am using Matlab 2019a and MBDT 4.1.&lt;/P&gt;&lt;P&gt;Do you have any solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2019 15:43:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/unknown-type-name-rtDW-ComputeElectricAngle-ADC-Sensing-g-T/m-p/923242#M3409</guid>
      <dc:creator>mahdikazemi12</dc:creator>
      <dc:date>2019-09-25T15:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: unknown type name 'rtDW_ComputeElectricAngle_ADC_Sensing_g_T'</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/unknown-type-name-rtDW-ComputeElectricAngle-ADC-Sensing-g-T/m-p/923243#M3410</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/mahdikazemi12@gmail.com"&gt;mahdikazemi12@gmail.com&lt;/A&gt;‌, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/s.kirchmeyr@abatec.at"&gt;s.kirchmeyr@abatec.at&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error ...&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;unknown type name 'rtDW_ComputeElectricAngle_ADC_Sensing_g_T' real32_T *rty_theta,&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;.. is caused by the Matlab Code generator. It does not like the atomic subsystems.&amp;nbsp;&lt;/P&gt;&lt;P&gt;An easy workaround is to change all the atomic subsystem from the motor into non-atomic with Code Generation function packing set to Auto&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/89008i9CDE6FA6DF614047/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/89257iBF6C9087C57053FA/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;At some point all the model will be updated. For the moment, you can use the models of Motor Control shipped with the Toolbox 4.1.0. Those were already upgraded. You can take inspiration from there and if you wish you can upload your updated models as solutions in workshop articles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2019 11:27:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/unknown-type-name-rtDW-ComputeElectricAngle-ADC-Sensing-g-T/m-p/923243#M3410</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2019-09-26T11:27:07Z</dc:date>
    </item>
  </channel>
</rss>

