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!