archiver-appliance / epicsarchiverap

This is an implementation of an archiver for EPICS control systems that aims to archive millions of PVs.
Other
40 stars 39 forks source link

Matlab documentation is not working #42

Closed willrogers closed 6 years ago

willrogers commented 6 years ago

Hi,

When I follow the Matlab example documentation (switching URL and PV for ones we use here):

urlwrite('http://archappl.diamond.ac.uk/retrieval/data/getData.mat', ...
   'temp.mat', 'get', ...
   {'pv','SR-DI-DCCT-01:SIGNAL', ...
    'from', '2012-09-27T08:00:000Z', ...
    'to', '2012-09-27T09:00:000Z'});

I get the following error:

Error using urlreadwrite (line 97)
Error downloading URL. Your network connection may be down or your proxy
settings improperly configured.
Error in urlwrite (line 38)
[f,status] = urlreadwrite(mfilename,catchErrors,url,filename,varargin{:});
Error in aa (line 2)
urlwrite('http://archappl.diamond.ac.uk/retrieval/data/getData.mat', ... 

If I change the time format to place two zeros before the Z instead of three, it works correctly.

Is this a minor error in the documentation https://slacmshankar.github.io/epicsarchiver_docs/matlab.html?

Corrected version:

urlwrite('http://archappl.diamond.ac.uk/retrieval/data/getData.mat', ...
   'temp.mat', 'get', ...
   {'pv','SR-DI-DCCT-01:SIGNAL', ...
    'from', '2012-09-27T08:00:00Z', ...
    'to', '2012-09-27T09:00:00Z'});
willrogers commented 6 years ago

Duh just looks like an error on my part, sorry.