Script execution
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user