Script execution

This commit is contained in:
gac-x11ma
2018-04-05 13:29:05 +02:00
parent 91bd3bda0c
commit 794467c0a4

View File

@@ -1,13 +1,16 @@
def switchBox(PV,val,ACK):
flag = 1
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("Set " + str(val) + " to " + PV + " " + a)
time.sleep(1.5)
print("Done; " + a)
else:
print("Not Done; " + a)
time.sleep(1.0)
#a = None