<?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: MBD Toolbox - Tip of the Day in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639235#M167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;Tip #19: MBD Toolbox -&amp;nbsp;How to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;generate meaningful names for variables in Code Generation&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;Have you ever wanted to scope or record a variable with FreeMASTER or simply wanted to read the MATLAB generated code but found no meaningful symbol names in C-source or ELF ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;By default, MATLAB/Simulink code generation is going to optimize the program and most of the time the variables might be optimized out or simply defined as locals.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;Here is a Simulink model and the associated code generation snippet:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;IMG alt="pastedImage_6.png" src="https://community.nxp.com/t5/image/serverpage/image-id/12093iD9ECEEA37C025B8F/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_6.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;/* S-Function (GMCLIB_SvmStd_SF_FLT): '&amp;lt;S9&amp;gt;/GMCLIB_SvmStd_SF' */&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SWLIBS_3Syst_FLT Out&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SWLIBS_2Syst_FLT In&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fltArg1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; rtb_GMCLIB_ParkInv_SF_o1&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fltArg2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; rtb_GMCLIB_ParkInv_SF_o2&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rtb_GMCLIB_SvmStd_SF_o4 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;GMCLIB_SvmStd_FLT&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;Out&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;In&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rtb_GMCLIB_SvmStd_SF_o1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Out&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fltArg1&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rtb_GMCLIB_SvmStd_SF_o2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Out&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fltArg2&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rtb_GMCLIB_SvmStd_SF_o3 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Out&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fltArg3&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;In this case, the inputs and outputs are local variables and can't be visible to FreeMASTER therefore you cannot plot them in real time nor reading/understanding the code faster.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;PWM_control_S32K_step&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;/* local block i/o variables */&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real32_T rtb_GMCLIB_SvmStd_SF_o1&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real32_T rtb_GMCLIB_SvmStd_SF_o2&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real32_T rtb_GMCLIB_SvmStd_SF_o3&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real32_T rtb_GMCLIB_ParkInv_SF_o1&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real32_T rtb_GMCLIB_ParkInv_SF_o2&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_T rtb_GMCLIB_SvmStd_SF_o4&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 ‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P&gt;Wouldn't be nice to have the symbols like U_ALPHA, U_BETA, PWM_A, PWM_B, PWM_C and SECTOR instead of generic Simulink naming convention ?&lt;/P&gt;&lt;P&gt;Good news! that is possible&amp;nbsp;with a single click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just right click on the signal, select &lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Signal Properties&lt;/STRONG&gt; and then enable "&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt;Test Point&lt;/STRONG&gt;&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;IMG alt="pastedImage_5.png" src="https://community.nxp.com/t5/image/serverpage/image-id/13731iDABA66910E509ED4/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_5.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do this for all the signals you wish to visualize in FreeMASTER and Simulink is going to highlight all these signal and use them during code generation&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;IMG alt="pastedImage_6.png" src="https://community.nxp.com/t5/image/serverpage/image-id/13765i757E16F575D9AFA5/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_6.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the generated code should look like this.&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;/* S-Function (GMCLIB_SvmStd_SF_FLT): '&amp;lt;S9&amp;gt;/GMCLIB_SvmStd_SF' */&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SWLIBS_3Syst_FLT Out&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SWLIBS_2Syst_FLT In&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fltArg1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; PWM_control_S32K_B&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;U_ALPHA&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fltArg2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; PWM_control_S32K_B&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;U_BETA&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PWM_control_S32K_B&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SECTOR &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;GMCLIB_SvmStd_FLT&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;Out&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;In&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PWM_control_S32K_B&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PWM_A &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Out&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fltArg1&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PWM_control_S32K_B&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PWM_B &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Out&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fltArg2&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PWM_control_S32K_B&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PWM_C &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Out&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fltArg3&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now, it is easier to read the code and the even more important the Simulink is going to generate a global structure that could be easily visualized in FreeMASTER in real-time.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;/* Block signals (auto storage) */&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;typedef&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;struct&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real32_T U_ALPHA&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/* '&amp;lt;S8&amp;gt;/GMCLIB_ParkInv_SF' */&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real32_T U_BETA&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/* '&amp;lt;S8&amp;gt;/GMCLIB_ParkInv_SF' */&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real32_T PWM_A&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/* '&amp;lt;S9&amp;gt;/GMCLIB_SvmStd_SF' */&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real32_T PWM_B&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/* '&amp;lt;S9&amp;gt;/GMCLIB_SvmStd_SF' */&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real32_T PWM_C&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/* '&amp;lt;S9&amp;gt;/GMCLIB_SvmStd_SF' */&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_T SECTOR&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/* '&amp;lt;S9&amp;gt;/GMCLIB_SvmStd_SF' */&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; B_PWM_control_S32K_T&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Nov 2020 13:54:18 GMT</pubDate>
    <dc:creator>Daniel_Popa</dc:creator>
    <dc:date>2020-11-02T13:54:18Z</dc:date>
    <item>
      <title>MBD Toolbox - Tip of the Day</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639214#M146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This topic is intended to offer tips and tricks about using Model-Based Design Toolbox, Matlab Simulink and/or any other tools used for loading and debugging the applications created with MBD Toolboxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a piece of advice that you want to share with others this is the place to add it.&lt;/P&gt;&lt;P&gt;Comment below and help others to become proficient with NXP's MBD Toolboxes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Summary:&lt;/P&gt;&lt;P&gt;Tip #1:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904#comment"&gt;How to use Block Priorities&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Tip #2: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904#comment"&gt;How to use Model Workspace vs Matlab Workspace&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Tip #3: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904#comment"&gt;How to add custom code&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Tip #4: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904#comment"&gt;How to show/hide Block Execution Order&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Tip #5: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904#comment"&gt;How to use S-Function to inject custom code calls anywhere&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Tip #6: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904#comment"&gt;How to investigate model fails with build_exception.mat&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Tip #7: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904#comment"&gt;How to measure code execution time&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Tip #8: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904#comment"&gt;How to create&amp;nbsp;stand-alone callable functions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Tip #9: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904#comment"&gt;How to &amp;nbsp;Write to/Read from any address&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Tip #10: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904#comment"&gt;About the Timings &amp;amp; Interrupts of standard models&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tip #11: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904#comment"&gt;How to tune any controller in real-time&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tip #12: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904#comment"&gt;How to&amp;nbsp;keep a single toolbox visible&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tip #13: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904#comment"&gt;How to&amp;nbsp;address licensing errors&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tip #14: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904#comment"&gt;How to&amp;nbsp;make visible a&amp;nbsp;missing toolbox in Simulink Library&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tip #15: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904#comment"&gt;About Automotive Math and Motor Control Library Set&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tip #16: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904?commentID=914611%23comment-914611#comment"&gt;How to SIL&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tip #17: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904?commentID=914611%23comment-914611#comment"&gt;How to&amp;nbsp;PIL&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tip #18:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904?commentID=915480%23comment-915480#comment"&gt;How to&amp;nbsp;use custom Linker Command Files&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tip #19: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904?commentID=977772#comment"&gt;How to&amp;nbsp;generate meaningful names for variables in Code Generation&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tip #20: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904#comment"&gt;How to control Symbolics&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tip #21: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904#comment"&gt;Multitasking in Simulink&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Tip #22: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904?commentID=1120452#comment"&gt;How to migrate a Simulink model&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Tip #23: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904?commentID=1120452#comment"&gt;New Perspective for Large and&amp;nbsp;Complex Production Software&amp;nbsp;Development&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Tip #24:&amp;nbsp;&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904#comment-1285638"&gt;How to&amp;nbsp;Integrate Custom C-code with existing Simulink Models&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 08:38:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639214#M146</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-04-25T08:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: MBD Toolbox - Tip of the Day</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639215#M147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tip #1: MBD Toolbox - Block Priorities&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you know that each MBD Toolbox/Simulink block have a Priority field - where you can specify the order of block/generated code execution?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="P1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14832iB0DE3AE77C4ADA66/image-size/large?v=v2&amp;amp;px=999" role="button" title="P1.jpg" alt="P1.jpg" /&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;/P&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;P&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;/P&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this option to alter the program flow and optimize the application.&lt;/P&gt;&lt;P&gt;E.g. From this: &amp;nbsp;reading input data &amp;nbsp;one by one as 8.0, 8.3, 8.6&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="P2.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14996i075DE2022969B9A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="P2.JPG" alt="P2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to this: &amp;nbsp;reading input data one of the other 8.0, 8.1, 8.2&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="P3.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15038i8034E5D2B8D5B6D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="P3.JPG" alt="P3.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 08:55:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639215#M147</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-04-25T08:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: MBD Toolbox - Tip of the Day</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639216#M148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tip #2: MBD Toolbox - Model Workspace vs. Matlab Workspace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you ever faced this kind of Simulink errors ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Tip2_1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16819i941B1F653C57EAD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tip2_1.jpg" alt="Tip2_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Usually, the Simulink models refers some parameters that are present in the Matlab workspace. If the workspace is cleared then you need to reload the parameters again form m-file or mat-file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some cases it is easy to keep these parameters in the model workspace. This way you can share the Simulink model without any additional m-files/mat-files&lt;/P&gt;&lt;P&gt;Just right click on the Simulink canvas and select Explore:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="tip2_3.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16994i15D465B860FCA35B/image-size/large?v=v2&amp;amp;px=999" role="button" title="tip2_3.jpg" alt="tip2_3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then, add any parameters in the Model Workspace.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Tip2_2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16953i729F710D77FB8CC5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tip2_2.jpg" alt="Tip2_2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 09:36:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639216#M148</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-04-26T09:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: MBD Toolbox - Tip of the Day</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639217#M149</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;Tip #3: MBD Toolbox -&amp;nbsp;Add custom code to your Simulink model&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Did you know that using NXP Model Based Design Toolbox, one&amp;nbsp;has the possibility to add custom C code into the&amp;nbsp;Simulink model? This C code section will work with NXP blocks for different peripherals ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;There may be cases when one needs to execute some code that is not part of the model but are instead hand coded. In these instances, user specific files will need to be&amp;nbsp;included in the build directory created by toolbox. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;You&amp;nbsp;can specify which files to include in the build directory by creating/modifying a file called {toolbox name}_user_copy_required_files.m and locate it somewhere in one of the Matlab paths. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;There is an example of this file located in the ‘mscripts’ directory that demonstrates how to include user specific files.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 12:54:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639217#M149</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-04-27T12:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: MBD Toolbox - Tip of the Day</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639218#M150</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;Tip #4: MBD Toolbox -&amp;nbsp;Show Block Execution Order&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;In case you want to enable/disable the display of the Simulink Execution Order (discussed in Tip #1) there is an easy way to do that: Display -&amp;gt; Blocks -&amp;gt; Sorted Execution Order&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="execution_order_enable.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/17738iFABF8356598A43AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="execution_order_enable.jpg" alt="execution_order_enable.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Why would someone hide the execution order number ? Can you think of such scenario ? Leave a reply below.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 May 2017 18:11:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639218#M150</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-01T18:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: MBD Toolbox - Tip of the Day</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639219#M151</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;Tip #5: MBD Toolbox - Use S-Function to call your custom code anywhere in the model&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Using the S-Function Builder and the Mode Based Design Toolbox - Add Custom Code capabilities (Tip #3) you can call your hand written functions in any place within your models.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="S-function builder.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18322i788D6E9047052813/image-size/large?v=v2&amp;amp;px=999" role="button" title="S-function builder.JPG" alt="S-function builder.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;This way you can enhance the Simulink model with multiple capabilities that may not be fully covered by Toolbox Blocks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Using this approach you can interlace Simulink automatically generated C&amp;nbsp;with your own legacy code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Here is an example how to achieve this task: &amp;nbsp;&lt;A href="https://community.nxp.com/thread/450048"&gt;https://community.nxp.com/thread/450048&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Are you using legacy code in the Simulink modelling ? Leave a comment below with the issues you have faced and how you resolved it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 14:45:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639219#M151</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-02T14:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: MBD Toolbox - Tip of the Day</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639220#M152</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;Tip #6: MBD Toolbox - Use&amp;nbsp;&lt;STRONG&gt;build_exception.mat&lt;/STRONG&gt; to find out why the model failed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Have you ever faced issues when trying to build your Simulink models and the build console reported something like "Error: Errors occurred - aborting" without any other additional information?&amp;nbsp;Isn't this frustrating?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Did you know you can navigate to the build folder and search for the build_exception.mat file that offers you very detailed information about the error stack, cause and messages that were catch during the build procedure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;By simply loading this&amp;nbsp;&lt;SPAN&gt;build_exception.mat&lt;/SPAN&gt; file into the MATLAB&amp;nbsp;workspace you could save a lot of time. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Here is a snapshot of what to expect when loading this file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="build_exception.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19230i4A627367FCC59ED5/image-size/large?v=v2&amp;amp;px=999" role="button" title="build_exception.jpg" alt="build_exception.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 15:13:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639220#M152</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-03T15:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: MBD Toolbox - Tip of the Day</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639221#M153</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;Tip #7: MBD Toolbox - Measuring &lt;STRONG&gt;Code Execution&lt;/STRONG&gt; Time&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Using Model Based Design Toolbox, measuring the execution time of any routine is easy.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Just drag-and-drop the &lt;STRONG&gt;Profiler Function&lt;/STRONG&gt; block into your models or subsystems you want to check for execution time and read that output values in real time with FreeMASTER or send it over UART/CAN/etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;You can find the block within the Utility Blocks group:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="profiler.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19581iC27B129F111C4B0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="profiler.JPG" alt="profiler.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 13:29:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639221#M153</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-04T13:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: MBD Toolbox - Tip of the Day</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639222#M154</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;Tip #8: MBD Toolbox -&amp;nbsp;Use &lt;STRONG&gt;Atomic Subsystem to create stand-alone callable functions&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Have you ever faced a situation where you had to read and understand a large amount of C-code generated from a large Simulink model where all the code is inline? Then you probably spend a lot of time to figure out that are the input/output and local data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Did you know you can transform parts of the model into Atomic Subsystems and then configure the Code Generation to call &lt;STRONG&gt;Reusable Functions&lt;/STRONG&gt; ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Let's consider the following example that consists in a PI Speed Controller and a Speed Estimator:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18040i496E2501D1B06D1C/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.JPG" alt="1.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Choosing to model the MotorSpeedController as an Atomic Subsystem gives you access to &lt;STRONG&gt;Block Parameters (Subsystem)/Code Generation&lt;/STRONG&gt; where you can set different code generation behaviors&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Selecting &lt;STRONG&gt;Reusable Function&lt;/STRONG&gt; option the generated code will become much more clear.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18176i94C2B2C4FB9E7E73/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.JPG" alt="2.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Here is the snapshot of the reusable function call (on the left) vs Inline Code (on the right):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="4.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18041i50A0EBBB421679E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.JPG" alt="4.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 14:38:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639222#M154</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-05T14:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: MBD Toolbox - Tip of the Day</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639223#M155</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;Tip #9: MBD Toolbox -&amp;nbsp;&lt;STRONG&gt;Write to&lt;/STRONG&gt;/&lt;STRONG&gt;Read from&lt;/STRONG&gt; &lt;STRONG&gt;any address&lt;/STRONG&gt; within the microprocessor address space&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Do you need fast access to any&amp;nbsp;memory mapped register of a particular peripheral within the microprocessor address space ?&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Do you need to perform an initialization of any specific peripheral register&amp;nbsp;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;With MBD Toolbox and DataMemWrite/DataMemRead Simulink blocks these tasks are very easy. Just check the Reference Manual for the address you need to set and give a try with MBD Toolbox dedicated blocks. No extra code is needed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="data read_write.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/17565iB72E7C4331B1DBC9/image-size/large?v=v2&amp;amp;px=999" role="button" title="data read_write.jpg" alt="data read_write.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 13:14:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639223#M155</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-08T13:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: MBD Toolbox - Tip of the Day</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639224#M156</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;Tip #10: MBD Toolbox - &lt;STRONG&gt;Timings&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&amp;amp; Interrupts&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Did you know that all the blocks that are not coupled with a specific function call/event are still executed on a default interrupt based routine called &lt;STRONG&gt;Model Step Function&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;This ***_step() that is triggered based on the settings from &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Solver/Fixed-Step size&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19003i1471D82129178070/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is a code snippet:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19048i610D72EAE0DD6B6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a conversion mechanism between Simulink Fixed Step Size value to the MCU System Tick that takes into consideration the MCU Clock Frequency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next time you design your model, keep in mind that all the generated code is called on a interrupt. Only FreeMASTER callback for data visualization is called on main() infinite loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 14:23:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639224#M156</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-09T14:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: MBD Toolbox - Tip of the Day</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639225#M157</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;Tip #11: MBD Toolbox - &lt;STRONG&gt;Change &lt;/STRONG&gt;position/speed/current&lt;STRONG&gt; controller gains&amp;nbsp;&lt;/STRONG&gt;in real-time&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Using FreeMASTER you can change the variables in real-time for any running system. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;A good example is the the need for tunning the controllers (position/speed/current).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;By default the Simulink PID controller block uses constant values that can not be changed from outside during simulation or execution. But, if you change the &lt;STRONG&gt;Controller Parameters SOURCE&lt;/STRONG&gt; to &lt;STRONG&gt;EXTERNAL&amp;nbsp;&lt;/STRONG&gt;you can overcome that limitation and you may change the gains on the fly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/17947i1273356D9259D81C/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;The Simulink model will become:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/17862i11F86FB390F8A65C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Now, you can add the gains in the FreeMASTER tool and tune your controller in real time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/17868iC0E4F4393A2BA0FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;This way you have no excuse for obtaining a "perfect: system response.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 13:50:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639225#M157</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-12T13:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: MBD Toolbox - Tip of the Day</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639226#M158</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;Tip #12: MBD Toolbox -&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Using multiple toolboxes&lt;/STRONG&gt; in the same Matlab instance&lt;/P&gt;&lt;P&gt;Even if multiple installations and instantiations of the NXP MBD Toolbox within a single Matlab release is supported there might be situations when you might want to keep only one active and visible toolbox library in Simulink.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do that very easy by resetting the &lt;STRONG&gt;Matlab Search Path&lt;/STRONG&gt; to Defaults and then load only the Toolbox you are interested in.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/22031i6227E231E5CA6A13/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 14:49:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639226#M158</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-24T14:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: MBD Toolbox - Tip of the Day</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639227#M159</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;Tip #13: MBD Toolbox -&amp;nbsp;Common &lt;STRONG&gt;license error codes&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Have you tried to use the Model Based Design Toolbox but you end-up having a Licensing Error like this ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19394i801E167F1D49D9F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&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;Most of the times you can fix this by yourself. The NXP MBD Toolbox is using FlexLM license manager from Flexera Software. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;FlexLM error codes with description and possible causes can be found here: &lt;A class="link-titled" href="http://www.opendtect.org/lic/doc/endusermanual/chap13.htm" title="http://www.opendtect.org/lic/doc/endusermanual/chap13.htm"&gt;FLEXlm Error Codes&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The most common source of errors for Model Based Design are:&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="10" style="width: 637px;"&gt;&lt;TBODY&gt;&lt;TR align="center"&gt;&lt;TH style="width: 42px;"&gt;&lt;DIV class="" style="color: black; font-weight: bold; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;Error Code&lt;/DIV&gt;&lt;/TH&gt;&lt;TH style="width: 584px;"&gt;&lt;DIV class="" style="color: black; font-weight: bold; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;Description&lt;/DIV&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR align="left"&gt;&lt;TD style="width: 42px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;-1&lt;/DIV&gt;&lt;/TD&gt;&lt;TD style="width: 584px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;Cannot find license file.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left"&gt;&lt;TD style="width: 42px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;-2&lt;/DIV&gt;&lt;/TD&gt;&lt;TD style="width: 584px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;Invalid license file syntax.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left"&gt;&lt;TD style="width: 42px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;-5&lt;/DIV&gt;&lt;/TD&gt;&lt;TD style="width: 584px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;No such feature exists.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left"&gt;&lt;TD style="width: 42px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;-8&lt;/DIV&gt;&lt;/TD&gt;&lt;TD style="width: 584px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;Invalid (inconsistent) license key or signature.&lt;/DIV&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;The license key/signature and data for the feature do not match. This usually happens when a license file has been altered.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left"&gt;&lt;TD style="width: 42px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;-9&lt;/DIV&gt;&lt;/TD&gt;&lt;TD style="width: 584px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;Invalid host.&lt;/DIV&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;The hostid of this system does not match the hostid specified in the license file.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left"&gt;&lt;TD style="width: 42px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;-10&lt;/DIV&gt;&lt;/TD&gt;&lt;TD style="width: 584px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;Feature has expired.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left"&gt;&lt;TD style="width: 42px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;-11&lt;/DIV&gt;&lt;/TD&gt;&lt;TD style="width: 584px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;Invalid date format in license file.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left"&gt;&lt;TD style="width: 42px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;-18&lt;/DIV&gt;&lt;/TD&gt;&lt;TD style="width: 584px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;License server does not support this feature.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left"&gt;&lt;TD style="width: 42px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;-21&lt;/DIV&gt;&lt;/TD&gt;&lt;TD style="width: 584px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;License file does not support this version.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left"&gt;&lt;TD style="width: 42px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;-30&lt;/DIV&gt;&lt;/TD&gt;&lt;TD style="width: 584px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;Cannot read license file.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left"&gt;&lt;TD style="width: 42px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;-31&lt;/DIV&gt;&lt;/TD&gt;&lt;TD style="width: 584px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;Feature start date is in the future.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left"&gt;&lt;TD style="width: 42px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;-54&lt;/DIV&gt;&lt;/TD&gt;&lt;TD style="width: 584px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;No FEATURESET line in license file.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left"&gt;&lt;TD style="width: 42px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;-55&lt;/DIV&gt;&lt;/TD&gt;&lt;TD style="width: 584px;"&gt;&lt;DIV class="" style="color: black; text-decoration: none; text-indent: 0em; margin: 0em;"&gt;Incorrect FEATURESET line in license file.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 08:15:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639227#M159</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-25T08:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: MBD Toolbox - Tip of the Day</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639228#M160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;Tip #14: MBD Toolbox -&amp;nbsp;&lt;STRONG&gt;Simulink Missing Toolbox Library&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;Have you tried to use&amp;nbsp;a toolbox that you have installed but is does not seems to be present in the Simulink Library ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19745i89BC005201347227/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.JPG" alt="1.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;Sometimes the Simulink might not update the information correctly. With a simple F5 you can force a library refresh. If something is broken the Simulik will inform about that:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19789i10D728F96455E3AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.JPG" alt="1.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;Just click on Fix and select the "Generate Repositories in Memory"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19922i6514A43BF269627A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.JPG" alt="2.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;That should do the trick and made all installed toolboxes available in the Simulink Library.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 15:33:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639228#M160</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-06-06T15:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: MBD Toolbox - Tip of the Day</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639229#M161</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;Tip #15: MBD Toolbox -&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="color: #51626f; border: 0px; font-weight: bold;"&gt;Automotive Math and Motor Control Library&amp;nbsp;&lt;/STRONG&gt;supported features&lt;/P&gt;&lt;P&gt;Did you know that using the NXP AMMC Library in conjunction with NXP MBD Toolbox you can design and implement your entire application using just Simulink blocks in a &lt;STRONG&gt;fraction of the time&lt;/STRONG&gt; compared other SW development&amp;nbsp;approaches.&lt;/P&gt;&lt;P&gt;No hand-written code is required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of that could be achieved in case of FOC for PMSM.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20073iB07CFFF664477FDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.jpg" alt="Untitled.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 08:51:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639229#M161</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-06-07T08:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: MBD Toolbox - Tip of the Day</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639230#M162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;Tip #16: MBD Toolbox -&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="color: #51626f; border: 0px; font-weight: bold;"&gt;How To SIL&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Did you know&amp;nbsp;you can test the numerical equivalence between model components and production code that you generate from the those components via&amp;nbsp;the software-in-the-loop (SIL) ?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P&gt;With a SIL simulation, you test very early in the&amp;nbsp;project design stage, the C-source code on your host&amp;nbsp;computer. &amp;nbsp;Based on that&amp;nbsp;you can&amp;nbsp;establish the testing strategy &amp;nbsp;and start testing the functional components by preparing the harness tests to create a functional baseline of the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this &lt;A _jive_internal="true" href="https://community.nxp.com/videos/7844"&gt;video&lt;/A&gt; to see how you can easily convert any Simulink model created with Model Based Design Toolbox to a SIL simulation:&amp;nbsp;&lt;A href="https://community.nxp.com/videos/7844"&gt; Video Link : 7844&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6185808006001w320h240r588" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6185808006001" 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-6185808006001w320h240r588');  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/6185808006001"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 08:29:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639230#M162</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-06-15T08:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: MBD Toolbox - Tip of the Day</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639231#M163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;Tip #17: MBD Toolbox -&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="color: #51626f; border: 0px; font-weight: bold;"&gt;How To PIL&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Did you know&amp;nbsp;you can tie the &lt;STRONG&gt;standard Simulink model simulation&lt;/STRONG&gt; with the &lt;STRONG&gt;actual code executing on the real hardware&lt;/STRONG&gt; &amp;nbsp;to create a co-simulation environment ?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;In this co-simulation the outputs of the control algorithm and functions that are executed on the real microprocessor are fed back into the Simulink virtual simulation allowing you to detect and analyze potential issues that can only be detected once the final application is built.&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;Check this &lt;A _jive_internal="true" href="https://community.nxp.com/videos/7845"&gt;video &lt;/A&gt;to see how you can easily convert any Simulink model created with Model Based Design Toolbox to a PIL simulation:&lt;A href="https://community.nxp.com/videos/7845"&gt; Video Link : 7845&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6185814086001w320h240r613" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6185814086001" 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-6185814086001w320h240r613');  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/6185814086001"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 05:26:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639231#M163</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-06-16T05:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: MBD Toolbox - Tip of the Day</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639232#M164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this method, but it didn't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 01:03:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639232#M164</guid>
      <dc:creator>q380742432</dc:creator>
      <dc:date>2017-06-19T01:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: MBD Toolbox - Tip of the Day</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639233#M165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works only if the toolbox is already installed successfully on that PC. In your particular case - there is a licensing problem. Please confirm this after we will fix the DISK ID 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>Mon, 19 Jun 2017 09:03:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-Toolbox-Tip-of-the-Day/m-p/639233#M165</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-06-19T09:03:26Z</dc:date>
    </item>
  </channel>
</rss>

