MATLAB COM objects invoke problem with arrays
Show older comments
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);
Answers (0)
Categories
Find more on Use COM Objects in MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!