示例#1
0
 def doStart(self, target):
     BaseSequencer.doStart(self, self._field2current(target))
示例#2
0
文件: motor.py 项目: umithardal/nicos
 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
示例#3
0
文件: motor.py 项目: umithardal/nicos
 def doStop(self):
     if not self._seq_is_running():
         self._stopAction(-1)
     BaseSequencer.doStop(self)
示例#4
0
 def doReset(self):
     self._HW_ACK_Error()
     BaseSequencer.doReset(self)
示例#5
0
 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)
示例#6
0
 def doStart(self, target):
     BaseSequencer.doStart(self, target)
     self._hw_wait()  # blocking move due to use of tt and st device!
示例#7
0
 def doStop(self):
     self._HW_stop()
     BaseSequencer.doStop(self)
示例#8
0
 def doStart(self, target):
     if abs(self.read(0) - target) <= self.precision:
         return
     BaseSequencer.doStart(self, target)
示例#9
0
 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
示例#10
0
 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
示例#11
0
 def doReset(self):
     BaseSequencer.doReset(self)
     return self._attached_currentsource.reset()
示例#12
0
 def doStop(self):
     BaseSequencer.doStop(self)
     if self.status()[0] == status.BUSY:
         multiStop(self._adevs)