debug CHIC
This commit is contained in:
12
undulator.py
12
undulator.py
@ -64,9 +64,9 @@ class Undulators(Adjustable):
|
||||
t = a.set_target_value(k_new, hold=False)
|
||||
tasks.append(t)
|
||||
wait_for_all(tasks)
|
||||
# print("CHIC adjustment follows")
|
||||
# self.chic.set_target_value(value, hold=False).wait() #TODO: test whether an additional sleep is needed
|
||||
# print("CHIC adjustment done")
|
||||
print("CHIC adjustment follows")
|
||||
self.chic.set_target_value(value, hold=False) #TODO: test whether an additional sleep is needed
|
||||
print("CHIC adjustment done")
|
||||
|
||||
return self._as_task(change, hold=hold)
|
||||
|
||||
@ -172,9 +172,11 @@ class CHIC(PVAdjustable):
|
||||
def change():
|
||||
sleep(1)
|
||||
print("CHIC setvalue")
|
||||
self.pvs.setvalue.put(value, wait=True)
|
||||
print(value)
|
||||
self.pvs.setvalue.put(value, wait=False)
|
||||
sleep(1)
|
||||
print("CHIC start")
|
||||
self.pvs.start.put(1, wait=True)
|
||||
self.pvs.start.put(1, wait=False)
|
||||
#TODO: test whether an additional sleep is needed
|
||||
sleep(1)
|
||||
|
||||
|
Reference in New Issue
Block a user