<?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 Question about using certain RTW blocks in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-using-certain-RTW-blocks/m-p/713781#M1338</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just a quick question if there is a problem on my end or with the toolbox or rather Simulink.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use a Simulink Real-Time block called ASCII Encoder to transmit register values over UART to a PC.&lt;/P&gt;&lt;P&gt;The thing is: the build stops with errors and I don't know what to do from here. I tried to include some additional paths manually but to no avail. So any help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a picture of the easiest subroutine and also another one of the failed build log. (Btw it does not work even with a constant value instead of a MemRead, so that is not the problem.)&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;span class="lia-inline-image-display-wrapper" image-alt="SimulinkUART.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27470i76F6B3B58ECFA293/image-size/large?v=v2&amp;amp;px=999" role="button" title="SimulinkUART.png" alt="SimulinkUART.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="SimulinkBuildLog.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27512i8AF4F684AFA1C8F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="SimulinkBuildLog.png" alt="SimulinkBuildLog.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Markus R.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Sep 2017 14:23:09 GMT</pubDate>
    <dc:creator>markusransberge</dc:creator>
    <dc:date>2017-09-01T14:23:09Z</dc:date>
    <item>
      <title>Question about using certain RTW blocks</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-using-certain-RTW-blocks/m-p/713781#M1338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just a quick question if there is a problem on my end or with the toolbox or rather Simulink.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use a Simulink Real-Time block called ASCII Encoder to transmit register values over UART to a PC.&lt;/P&gt;&lt;P&gt;The thing is: the build stops with errors and I don't know what to do from here. I tried to include some additional paths manually but to no avail. So any help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a picture of the easiest subroutine and also another one of the failed build log. (Btw it does not work even with a constant value instead of a MemRead, so that is not the problem.)&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;span class="lia-inline-image-display-wrapper" image-alt="SimulinkUART.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27470i76F6B3B58ECFA293/image-size/large?v=v2&amp;amp;px=999" role="button" title="SimulinkUART.png" alt="SimulinkUART.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="SimulinkBuildLog.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27512i8AF4F684AFA1C8F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="SimulinkBuildLog.png" alt="SimulinkBuildLog.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Markus R.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 14:23:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-using-certain-RTW-blocks/m-p/713781#M1338</guid>
      <dc:creator>markusransberge</dc:creator>
      <dc:date>2017-09-01T14:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Question about using certain RTW blocks</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-using-certain-RTW-blocks/m-p/713782#M1339</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/markusransberger"&gt;markusransberger&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not have a license for the&amp;nbsp;Simulink®&amp;nbsp;Real-Time™&amp;nbsp;toolbox, but i presume, based on the error you got that there is something related with the XPC drivers.&amp;nbsp;Can you build a simple model with ASCII encode block if the NXP's toolbox is not used ? Perhaps you need to configure that toolbox and/or add some drivers for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nonetheless, i think you can avoid that ASCII encode by a simple state-flow chart to do the conversion.&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>Sun, 03 Sep 2017 17:48:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-using-certain-RTW-blocks/m-p/713782#M1339</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-09-03T17:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Question about using certain RTW blocks</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-using-certain-RTW-blocks/m-p/713783#M1340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;just letting you know that the problem is on my end. Your suggestion to build a fresh model was the right idea. (I always ran it instead of building, my bad, and this worked as expected.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The XPC Target "toolbox" license which is actually integrated in Real-Time Workshop nowadays is still somehow separated from the RTW license, where I'm working at. I really don't know why, but I ordered the license today. Thanks for helping me again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Markus R.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 08:59:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-using-certain-RTW-blocks/m-p/713783#M1340</guid>
      <dc:creator>markusransberge</dc:creator>
      <dc:date>2017-09-04T08:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Question about using certain RTW blocks</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-using-certain-RTW-blocks/m-p/713784#M1341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's more likely that you just didn't install the xpc toolboxes, even if you have licenses for them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ASCII blocks look like they're in xpcseriallib. The cheap route would be to just make your own ASCII library to encode and decode messages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 15:59:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-using-certain-RTW-blocks/m-p/713784#M1341</guid>
      <dc:creator>jfrey</dc:creator>
      <dc:date>2017-09-05T15:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Question about using certain RTW blocks</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-using-certain-RTW-blocks/m-p/713785#M1342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The thing is: the "missing" .c file actually exists in the Real Time Workshop directory and I got the license for that toolbox (and now the additional XPC toolbox license). I even tried it with a student version at home which got the whole package (at least it should have) and the same thing is happening. So I'd guess that's probably an error on Mathworks' behalf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now I won't use this block, so I implemented an inefficient sprintf function I found on &lt;A href="https://stackoverflow.com/a/40155222"&gt;stackoverflow&lt;/A&gt; and that's good enough right now. (Dynamic memory allocation and Matlab don't like each other very much I found out.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 15:16:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-using-certain-RTW-blocks/m-p/713785#M1342</guid>
      <dc:creator>markusransberge</dc:creator>
      <dc:date>2017-09-07T15:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Question about using certain RTW blocks</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-using-certain-RTW-blocks/m-p/713786#M1343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;The thing is: the "missing" .c file actually exists in the Real Time Workshop directory and I got the license for that toolbox (and now the additional XPC toolbox license). I even tried it with a student version at home which got the whole package (at least it should have) and the same thing is happening. So I'd guess that's probably an error on Mathworks' behalf.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You can use this &lt;A _jive_internal="true" href="https://community.nxp.com/message/915480?commentID=915480%23comment-915480#comment-900775"&gt;trick to copy any file into the generated folder&lt;/A&gt; prior of building the project. It should fix the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 14:44:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-using-certain-RTW-blocks/m-p/713786#M1343</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-09-08T14:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Question about using certain RTW blocks</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-using-certain-RTW-blocks/m-p/713787#M1344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unless you need human readable text sent it may be easier to ASCII printing on the computer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to make a short Python or Matlab script to read a byte at a time and then print it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2017 00:46:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-using-certain-RTW-blocks/m-p/713787#M1344</guid>
      <dc:creator>jfrey</dc:creator>
      <dc:date>2017-09-09T00:46:49Z</dc:date>
    </item>
  </channel>
</rss>

