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