The following VcExecutor may be a measure agains ipetra failures:
#!/bin/env python # # path: /usr/local/experiment/Tango/VcCode/petra3current.py # import PyTango, HasyUtils class VC: def __init__(self): try: self.proxy = PyTango.DeviceProxy( 'petra/globals/keyword') except Exception, e: print "VC.petra3current: failed to create proxy" print repr( e) return self.lastReading = 0. # def dev_state( self): return PyTango.DevState.ON # def read_Counts( self): try: argout = self.proxy.BeamCurrent self.lastReading = argout except Exception, e: argout = self.lastReading #argout = 0. return argout # def write_Counts( self, argin): pass # def Reset(self): return 1