Error in esig call

3 vues (au cours des 30 derniers jours)
Sean
Sean le 5 Avr 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?

Réponses (2)

Sean de Wolski
Sean de Wolski le 5 Avr 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 commentaire
Sean
Sean le 5 Avr 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

Connectez-vous pour commenter.


pangyuteng
pangyuteng le 18 Août 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.

Catégories

En savoir plus sur Call Web Services from MATLAB Using HTTP dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by