def doStart(self, target): BaseSequencer.doStart(self, self._field2current(target))
def _sequence(self, sequence): t = time.time() res = BaseSequencer._sequence(self, sequence) t = time.time() - t self.log.info("Movement finished, time elapsed %.4f.", t) return res
def doStop(self): if not self._seq_is_running(): self._stopAction(-1) BaseSequencer.doStop(self)
def doReset(self): self._HW_ACK_Error() BaseSequencer.doReset(self)
def doStatus(self, maxage=0): self.log.debug('DoubleMotorBeckhoff status') lowlevel = BaseSequencer.doStatus(self, maxage) if lowlevel[0] == status.BUSY: return lowlevel return BeckhoffBase.doStatus(self, maxage)
def doStart(self, target): BaseSequencer.doStart(self, target) self._hw_wait() # blocking move due to use of tt and st device!
def doStop(self): self._HW_stop() BaseSequencer.doStop(self)
def doStart(self, target): if abs(self.read(0) - target) <= self.precision: return BaseSequencer.doStart(self, target)
def doStatus(self, maxage=None): code, text = BaseSequencer.doStatus(self, maxage) if code == status.OK: text = self._attached_motor.status(maxage)[1] return code, text
def doStatus(self, maxage=0): stat = BaseSequencer.doStatus(self, maxage) if stat[0] != status.BUSY and self._seq_is_running(): return status.BUSY, stat[1] return stat
def doReset(self): BaseSequencer.doReset(self) return self._attached_currentsource.reset()
def doStop(self): BaseSequencer.doStop(self) if self.status()[0] == status.BUSY: multiStop(self._adevs)