MATLAB COM objects invoke problem with arrays
显示 更早的评论
Hello everyone!
We would like to initialize a connection from Maltab to a COM server via. However, every time we invoke the COM object by its method "Connect", it returned to an empty string []. It is supposed to return to another COM object which can be invoked again.
Can anyone help me on this issue? Is there any improper format for the output ? Any suggestion is highly appreciated!
Thank you very much!
Di
The code is below:
h=actxserver('EMService.CxEMService.1');
equipmentID=0;
[output,appID] = h.invoke('Connect',equipmentID);
% the appID return to a number, which is correct; but the output should be in another COM object, but it only returned to empty [].
The method 'Connect' of h.invoke are listed below
Connect = [handle, int32] Connect(handle, int32);
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Use COM Objects in MATLAB 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!