Script execution

This commit is contained in:
gac-x11ma
2018-04-05 10:44:32 +02:00
parent 45a997c18b
commit a364f5fe34

View File

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