Hello,
I have configured my FreeMASTER project with one application command, which is handled on target side. This is the definition:
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:
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:
What is the right syntax to use in the string I pass to SendCommand?
Regards,
Luca
Solved! Go to Solution.
Hello,
reason for the error is another mandatory argument unfortunately missing in the documentation:
Boolean argument "wait" - set true to wait for the command processing to finish.
So the line could look like:
pcm.SendCommand('enableLogging(1)', false);
The documentation will be updated in the next version.
Thanks.
Tomas
Hello,
reason for the error is another mandatory argument unfortunately missing in the documentation:
Boolean argument "wait" - set true to wait for the command processing to finish.
So the line could look like:
pcm.SendCommand('enableLogging(1)', false);
The documentation will be updated in the next version.
Thanks.
Tomas
Eventually I found out by myself what the right API method usage is. It seems that