Script execution

This commit is contained in:
gac-x11ma
2018-04-05 10:54:53 +02:00
parent 7057a25ca7
commit 5904b6bf7d

View File

@@ -3,12 +3,14 @@ def switchBox(PV,val,ACK):
while(flag):
print("Writing to: " + PV + " value: " + str(val))
caput(PV,val)
time.sleep(0.1)
a = caget(ACK)
if a == 'Command Completed':
flag = 0
print("Done; " + a)
else:
print("Not Done; " + a)
time.sleep(1.0)
print("Not done; " + a)
#a = None