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