From 794467c0a45b79e04d0ccbec2d7cd8872b6540d5 Mon Sep 17 00:00:00 2001 From: gac-x11ma Date: Thu, 5 Apr 2018 13:29:05 +0200 Subject: [PATCH] Script execution --- script/Vinayak_prot.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/script/Vinayak_prot.py b/script/Vinayak_prot.py index 14d63e3..00757d6 100644 --- a/script/Vinayak_prot.py +++ b/script/Vinayak_prot.py @@ -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