def doStatus(self, maxage=0): if EpicsDeviceEss.doStatus(self, maxage)[0] == status.ERROR: return EpicsDeviceEss.doStatus(self, maxage) if (self._attached_speed and self._attached_speed.status(maxage)[0] == status.BUSY): return status.BUSY, 'Speed moving to target' if (self._attached_phase and self._attached_phase.status(maxage)[0] == status.BUSY): return status.BUSY, 'Phase moving to target' return status.OK, 'Master' if self.isMaster else 'Slave'
def doStatus(self, maxage=0): epics_status = EpicsDeviceEss.doStatus(self, maxage) if epics_status[0] != status.OK: return epics_status now = currenttime() if self.lasttarget is not None and \ self.lasttarget != self._readRaw(maxage) and \ now > self.lasttoggle+10: return (status.WARN, '%s not reached!' % self._inverse_mapping[self.lasttarget]) return status.OK, ''
def doStatus(self, maxage=0): return EpicsDeviceEss.doStatus(self, maxage)
def doPreinit(self, mode): EpicsDeviceEss.doPreinit(self, mode) Detector.doPreinit(self, mode)
def doPreinit(self, mode): EpicsDeviceEss.doPreinit(self, mode)