Error in esig call

2 views (last 30 days)
Sean
Sean on 5 Apr 2011
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?

Answers (2)

Sean de Wolski
Sean de Wolski on 5 Apr 2011
'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 Comment
Sean
Sean on 5 Apr 2011
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

Sign in to comment.


pangyuteng
pangyuteng on 18 Aug 2011
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.

Community Treasure Hunt

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

Start Hunting!