From 5904b6bf7dc877e4ff025f8d75d63a217a11c304 Mon Sep 17 00:00:00 2001 From: gac-x11ma Date: Thu, 5 Apr 2018 10:54:53 +0200 Subject: [PATCH] Script execution --- script/Vinayak_prot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/Vinayak_prot.py b/script/Vinayak_prot.py index d1797b2..9b764c4 100644 --- a/script/Vinayak_prot.py +++ b/script/Vinayak_prot.py @@ -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