Example #1
0
    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'
Example #2
0
    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, ''
Example #3
0
 def doStatus(self, maxage=0):
     return EpicsDeviceEss.doStatus(self, maxage)
Example #4
0
 def doPreinit(self, mode):
     EpicsDeviceEss.doPreinit(self, mode)
     Detector.doPreinit(self, mode)
Example #5
0
 def doPreinit(self, mode):
     EpicsDeviceEss.doPreinit(self, mode)