Skip to content

Commit

Permalink
Fix StartAll to wait for movement to start
Browse files Browse the repository at this point in the history
  • Loading branch information
gjover authored and Sicilia Developer Controls committed May 26, 2021
1 parent 8a225e0 commit 752617f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sardana_linkam/ctrl/LinkamTST350MotorCtrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ def StartAll(self):
positions_list.append(int(pos))
print('RH###: ', positions_list)
self.device.command_inout('MoveAbsolute', positions_list)
idle = [True, True, True]
while all(idle):
idle = self.device.read_attribute('Idle').value
self._log.debug("Idle state is %s" % str(idle))

def SetAxisPar(self, axis, name, value):
""" Set the standard pool motor parameters.
Expand Down

0 comments on commit 752617f

Please sign in to comment.