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