Script execution

This commit is contained in:
gac-x11ma
2018-04-05 10:57:48 +02:00
parent 614e0a5c50
commit c666bcda8f

View File

@@ -1,15 +1,12 @@
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("Done; " + a)
else:
print("Not Done; " + a)
time.sleep(1.0)
#a = None