#!/usr/bin/env python import time from epics import caget,caput while True: raid_space = caget('HD:coda:daq:availableRAID') raid_heartbeat = caget('HD:coda:daq:heartbeat') pxi_dir = caget('pxiroot:ctrl:file_dir') pxi_heartbeat = caget('pxiroot:ctrl:raid:heartbeat') if raid_space==None: raid_space=-1,0 if raid_heartbeat==None: raid_heartbeat=-1 if pxi_dir==None: pxi_dir='' if pxi_heartbeat==None: pxi_heartbeat=-1 print '' print 'HD:coda:daq:availableRAID : %f' % raid_space print 'HD:coda:daq:heartbeat : %d' % raid_heartbeat print 'pxiroot:ctrl:file_dir : %s' % pxi_dir print 'pxiroot:ctrl:raid:heartbeat : %d' % pxi_heartbeat time.sleep(2)