- MPS Stats is a prototype that can correlate MPS History data with the data from the ChannelArchiver
- ChannelArchiver Manual, p. 44...
#! /usr/bin/python import time import xmlrpclib if __name__ == "__main__": ARCHIVER_URI = 'http://lcls-archsrv/cgi-bin/ArchiveDataServer.cgi' proxy = xmlrpclib.ServerProxy(ARCHIVER_URI) result = proxy.archiver.values(1, ['EVNT:SYS0:1:LCLSBEAMRATE'], 1297888257,0, 1297974657, 0, 300000, 0) for item in result[0]['values']: print 'Value: %s Timestamp: %s' % (item['value'][0], time.ctime(item['secs']))
- The code is located in CVS under physics/mps/mpstats