<?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>FreeMASTERのトピックIssue with PipeWriteXxxArray ActiveX API</title>
    <link>https://community.nxp.com/t5/FreeMASTER/Issue-with-PipeWriteXxxArray-ActiveX-API/m-p/1562667#M1208</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; as issue with using the PipeWriteXxxArray API functions, as I connect to the ActiveX server from MATLAB and I try to send arrays.&lt;/P&gt;&lt;P&gt;With scalar inputs it works:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lucabarbiero_0-1669883585015.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202399i7D16339BBC2E08FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lucabarbiero_0-1669883585015.png" alt="lucabarbiero_0-1669883585015.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how should I provide an array? I tried with both MATLAB cell array:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lucabarbiero_3-1669883721896.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202402i6493C6FD81814EF8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lucabarbiero_3-1669883721896.png" alt="lucabarbiero_3-1669883721896.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And MATLAB normal array:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lucabarbiero_5-1669883780122.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202404i92F9AE602FBE5908/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lucabarbiero_5-1669883780122.png" alt="lucabarbiero_5-1669883780122.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But nothing. Also tried row vs column array, and tried other PipeWriteFloatArray (same issue).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the right way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luca&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 01 Dec 2022 08:38:12 GMT</pubDate>
    <dc:creator>lucabarbiero</dc:creator>
    <dc:date>2022-12-01T08:38:12Z</dc:date>
    <item>
      <title>Issue with PipeWriteXxxArray ActiveX API</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Issue-with-PipeWriteXxxArray-ActiveX-API/m-p/1562667#M1208</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; as issue with using the PipeWriteXxxArray API functions, as I connect to the ActiveX server from MATLAB and I try to send arrays.&lt;/P&gt;&lt;P&gt;With scalar inputs it works:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lucabarbiero_0-1669883585015.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202399i7D16339BBC2E08FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lucabarbiero_0-1669883585015.png" alt="lucabarbiero_0-1669883585015.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how should I provide an array? I tried with both MATLAB cell array:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lucabarbiero_3-1669883721896.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202402i6493C6FD81814EF8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lucabarbiero_3-1669883721896.png" alt="lucabarbiero_3-1669883721896.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And MATLAB normal array:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lucabarbiero_5-1669883780122.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202404i92F9AE602FBE5908/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lucabarbiero_5-1669883780122.png" alt="lucabarbiero_5-1669883780122.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But nothing. Also tried row vs column array, and tried other PipeWriteFloatArray (same issue).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the right way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luca&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Dec 2022 08:38:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Issue-with-PipeWriteXxxArray-ActiveX-API/m-p/1562667#M1208</guid>
      <dc:creator>lucabarbiero</dc:creator>
      <dc:date>2022-12-01T08:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with PipeWriteXxxArray ActiveX API</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Issue-with-PipeWriteXxxArray-ActiveX-API/m-p/1562680#M1210</link>
      <description>&lt;P&gt;Hello Luca,&lt;/P&gt;
&lt;P&gt;I don't think anyone has tried to exercise Array passing from Matlab before. Can you quickly try to set:&lt;/P&gt;
&lt;DIV class="CodeBlock contiguous"&gt;
&lt;PRE class="lineNode mwRichTextComponentLine"&gt;&lt;SPAN class="textBox"&gt;&lt;SPAN class="textWrapper"&gt;feature(&lt;/SPAN&gt;&lt;SPAN class="textWrapper sh-string String"&gt;'COM_SafeArraySingleDim'&lt;/SPAN&gt;&lt;SPAN class="textWrapper"&gt;, 1) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV class="paragraphNode wrappable"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraphNode wrappable"&gt;&lt;SPAN class="textBox"&gt;&lt;SPAN class="textWrapper"&gt;This should turn the Matlab arrays into a single-dimensional safearrays which the FreeMASTER expects.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="paragraphNode wrappable"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraphNode wrappable"&gt;&lt;SPAN class="textBox"&gt;&lt;SPAN class="textWrapper"&gt;If this does not help, we will help to debug the issue deeper.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="paragraphNode wrappable"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraphNode wrappable"&gt;&lt;SPAN class="textBox"&gt;&lt;SPAN class="textWrapper"&gt;Thanks,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="paragraphNode wrappable"&gt;&lt;SPAN class="textBox"&gt;&lt;SPAN class="textWrapper"&gt;Michal&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="paragraphNode wrappable"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Dec 2022 08:54:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Issue-with-PipeWriteXxxArray-ActiveX-API/m-p/1562680#M1210</guid>
      <dc:creator>MichalH</dc:creator>
      <dc:date>2022-12-01T08:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with PipeWriteXxxArray ActiveX API</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Issue-with-PipeWriteXxxArray-ActiveX-API/m-p/1562771#M1212</link>
      <description>&lt;P&gt;Hi Michal,&lt;/P&gt;&lt;P&gt;It's ok you know that as a user I like to pioneer features of this amazing tool.&lt;/P&gt;&lt;P&gt;After adding that command to my MATLAB script, I don't get the error anymore when invoking PipeWriteXxxArray from MATLAB.&lt;/P&gt;&lt;P&gt;However at target side, after calling FMSTR_PipeRead, the right amount of bytes is received, but only the first element of the array is received correctly, while further array elements contain corrupted data. I tried with&amp;nbsp; PipeWriteUIntArray, PipeWriteFloatArray and with arrays of 2 and 5 elements.&lt;/P&gt;&lt;P&gt;I can do with just sending scalars for my current use case. Maybe take a note to look into this at some point in time.&lt;/P&gt;&lt;P&gt;Thanks for your quick response,&lt;/P&gt;&lt;P&gt;Luca&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 10:28:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Issue-with-PipeWriteXxxArray-ActiveX-API/m-p/1562771#M1212</guid>
      <dc:creator>lucabarbiero</dc:creator>
      <dc:date>2022-12-01T10:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with PipeWriteXxxArray ActiveX API</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Issue-with-PipeWriteXxxArray-ActiveX-API/m-p/1563287#M1214</link>
      <description>&lt;P&gt;Yes, we will investigate and fix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;BR /&gt;Michal&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 07:22:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Issue-with-PipeWriteXxxArray-ActiveX-API/m-p/1563287#M1214</guid>
      <dc:creator>MichalH</dc:creator>
      <dc:date>2022-12-02T07:22:25Z</dc:date>
    </item>
  </channel>
</rss>

