<?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: Problem with &amp;quot;SendCommand&amp;quot; API method in FreeMASTER</title>
    <link>https://community.nxp.com/t5/FreeMASTER/Problem-with-quot-SendCommand-quot-API-method/m-p/1509477#M1130</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;reason for the error is another mandatory argument unfortunately missing in the documentation:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Boolean argument "wait" - set true to wait for the command processing to finish.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;So the line could look like:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;pcm.SendCommand('enableLogging(1)', false);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The documentation will be updated in the next version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;Tomas&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2022 10:58:47 GMT</pubDate>
    <dc:creator>TomasK</dc:creator>
    <dc:date>2022-08-22T10:58:47Z</dc:date>
    <item>
      <title>Problem with "SendCommand" API method</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Problem-with-quot-SendCommand-quot-API-method/m-p/1506820#M1119</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have configured my FreeMASTER project with one application command, which is handled on target side. This is the definition:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lucabarbiero_0-1660652631957.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190347iF923CF866E1848B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lucabarbiero_0-1660652631957.png" alt="lucabarbiero_0-1660652631957.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And everything works as long as I use the desktop app. Now I want to send this command from MATLAB through the ActiveX server, but I fail as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lucabarbiero_1-1660652736692.png" style="width: 694px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190348i5BD7BD446DDE60AF/image-dimensions/694x118?v=v2" width="694" height="118" role="button" title="lucabarbiero_1-1660652736692.png" alt="lucabarbiero_1-1660652736692.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And I get the same error message, whatever the string I pass to SendCommand. What am I doing wrong? I have followed this piece of documentation:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lucabarbiero_2-1660652834960.png" style="width: 731px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190349i77A76C4A135D610E/image-dimensions/731x123?v=v2" width="731" height="123" role="button" title="lucabarbiero_2-1660652834960.png" alt="lucabarbiero_2-1660652834960.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the right syntax to use in the string I pass to SendCommand?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Luca&lt;/P&gt;&lt;DIV&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>Tue, 16 Aug 2022 12:28:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Problem-with-quot-SendCommand-quot-API-method/m-p/1506820#M1119</guid>
      <dc:creator>lucabarbiero</dc:creator>
      <dc:date>2022-08-16T12:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with "SendCommand" API method</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Problem-with-quot-SendCommand-quot-API-method/m-p/1507461#M1121</link>
      <description>&lt;P&gt;Eventually I found out by myself what the right API method usage is. It seems that&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;pcm.SendCommand('enableLogging', '1');&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;works. So with the argument passed as a second parameter.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 17 Aug 2022 11:05:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Problem-with-quot-SendCommand-quot-API-method/m-p/1507461#M1121</guid>
      <dc:creator>lucabarbiero</dc:creator>
      <dc:date>2022-08-17T11:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with "SendCommand" API method</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Problem-with-quot-SendCommand-quot-API-method/m-p/1509477#M1130</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;reason for the error is another mandatory argument unfortunately missing in the documentation:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Boolean argument "wait" - set true to wait for the command processing to finish.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;So the line could look like:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;pcm.SendCommand('enableLogging(1)', false);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The documentation will be updated in the next version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;Tomas&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 10:58:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Problem-with-quot-SendCommand-quot-API-method/m-p/1509477#M1130</guid>
      <dc:creator>TomasK</dc:creator>
      <dc:date>2022-08-22T10:58:47Z</dc:date>
    </item>
  </channel>
</rss>

