Skip to content
Snippets Groups Projects
Commit 3e7d523e authored by kpetersn's avatar kpetersn
Browse files

Shortened the delay between pushing the SYNC fields and setting syncInProgress...

Shortened the delay between pushing the SYNC fields and setting syncInProgress to False. This seems to eliminate the stuck-in-the-moving-state when moving the motors from spec.

git-svn-id: https://subversion.xray.aps.anl.gov/kmp/transform/trunk@533 f095f811-4e88-6c84-d33e-e382bdb4531c
parent b9598013
No related branches found
No related tags found
No related merge requests found
......@@ -145,6 +145,7 @@ class transform:
def driveCallback(self, **kw):
#!print "driveCallback:\n", " ", kw['pvname'], kw['value']
#!print "---> synInProgress", self.syncInProgress
if self.initCompleteFlag == True and self.syncInProgress == False:
self.moveSoftMotorFlag = True
self.softMotorInitiatedMove = True
......@@ -212,11 +213,9 @@ class transform:
for i in range(len(self.tm_rbv)):
#!print i
self.tm_sync[i].put(1)
# A delay is necessary before setting syncInProgress to False
###sleep(0.05)
#
sleep(0.1)
# A delay is necessary before setting syncInProgress to False
sleep(0.01)
self.syncInProgress = False
# For soft-motor-initiate moves don't do anything
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment