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);

Antworten (0)

Kategorien

Produkte

Tags

Gefragt:

Di
am 26 Mär. 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by