Experimental Physics and
| |||||||||||||||||
|
Hello! I also had trouble getting the Matlab mex files to build and work however I realized one can use Matlab along with the archiveviewer.jar file to access Archiver data (no mex files required). Example Matlab session follows (this is localized so you will need to make some changes). *************************************** >> javaaddpath(fullfile(matlabroot,'work','archiveviewer.jar')) >> client = epics.archiveviewer.clients.channelarchiver.ArchiverClient(); >> client.connect('http://ees101/archive/cgi/ArchiveDataServer.cgi', []); >> client.getServerInfoText() ans = http://ees101/archive/cgi/ArchiveDataServer.cgi Server version: 0 ---------------------------------------- Description Channel Archiver Data Server V0, built Dec 7 2005, 10:04:55 from sources for version 2.6.0 Config: '/mnt/disk1/www/html/archive/serverconfig.xml' ---------------------------------------- Methods average linear plot-binning spreadsheet raw >> x = client.getAvailableArchiveDirectories() x = epics.archiveviewer.ArchiveDirectory[]: [epics.archiveviewer.clients.channelarchiver.ArchiveInfo] >> x(1).getName ans = Room128 >> y = client.search(x(1), 'gun_hv_volt_rdbk', []) y = epics.archiveviewer.AVEntry[]: [epics.archiveviewer.clients.channelarchiver.CAEntry] >> z = client.getAVEInfo(y(1)) z = epics.archiveviewer.AVEntryInfo@86359 >> start_t = z.getArchivingStartTime() start_t = 1.1685e+012 >> end_t = z.getArchivingEndTime() end_t = 1.1713e+012 >> r = client.getRetrievalMethod('linear') r = linear >> req_obj = epics.archiveviewer.RequestObject(start_t, end_t, r, 1000) req_obj = epics.archiveviewer.RequestObject@80000003 >> data = client.retrieveData(y, req_obj, []) data = epics.archiveviewer.ValuesContainer[]: [epics.archiveviewer.clients.channelarchiver.NumericValuesContainer] . >> data(1).getNumberOfValues() ans = 248 >> data(1).getValue(1) ans = [0.0] >> data(1).getValue(2) ans = [0.0] >> data(1).getValue(3) ans = [176.269315853876] >> data(1).getTimestampInMsec(3) ans = 1.1685e+012 >>
| ||||||||||||||||
ANJ, 10 Nov 2011 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |