Error in esig call

3 次查看(过去 30 天)
Sean
Sean 2011-4-5
I am trying to esablish an eSignal Desktop API connection using the esig function. I am calling it exactly as specified in the user guide:
E = esig('mylogin')
I'm getting the following error returned:
??? Undefined variable "IESignal" or class "IESignal.HooksClass".
Error in ==> esig.esig>esig.esig at 33 e.eSignal = IESignal.HooksClass;
What does this mean?

回答(2 个)

Sean de Wolski
Sean de Wolski 2011-4-5
'mylogin' is a 1x7 string; not anything else. I don't have the esig function but I assume it expects something of class 'IESignal.HooksClass' not a string. Perhaps:
esig(mylogin);
?
  1 个评论
Sean
Sean 2011-4-5
No, it is expecting a string.
Here is the method definition for esig.
function e = esig(user)
%ESIG eSignal Desktop API connection.
% E = ESIG(USER) creates a eSignal Desktop API connection given the
% username USER.
%
% See also CLOSE, GETDATA, HISTORY, TIMESERIES.
%Enable feature
esig.dffeature;
%Create .NET object and set application user id
e.eSignal = IESignal.HooksClass;
e.eSignal.SetApplication(user);
%Verify that user id is valid, data manager may need to catch up at
%first connection
if ~e.eSignal.IsEntitled
pause(10)
if ~e.eSignal.IsEntitled
error('datafeed:esig:notEntitled',char(e.eSignal.GetIsEntitledError))
end
end
end %end esig constructor

请先登录,再进行评论。


pangyuteng
pangyuteng 2011-8-18
Hi Sean, You will need to contact eSignal to add the "desktop API service", note that this service will require additional service charge per month.

类别

Help CenterFile Exchange 中查找有关 Call Web Services from MATLAB Using HTTP 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by