From 3a933a0bc113a9a6b4c8bd1ee24695d83a28aeb4 Mon Sep 17 00:00:00 2001 From: gac-x04sa Date: Tue, 30 Oct 2018 11:08:39 +0100 Subject: [PATCH] Script execution --- script/device/Pixel.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/device/Pixel.py b/script/device/Pixel.py index de06e7f..f1e303a 100644 --- a/script/device/Pixel.py +++ b/script/device/Pixel.py @@ -135,12 +135,14 @@ class Pixel(DeviceBase, Readable, Readable.IntegerType): def wait_finished(self): + print "A" cnt = 0 expose = self.get_expose() # # First wait for "TRIG" to go back to idle. This should # ensure that execution of the command has started. # + print "B" while (self.get_trigger_id() != 0): cnt = cnt + 1 if (cnt > 1000): @@ -151,6 +153,7 @@ class Pixel(DeviceBase, Readable, Readable.IntegerType): # Then wait for exposure time to elapse. # (PIX_EXPOSE is in milliseconds!) # + print "C" while time.time() <= self.PIX_EXP_START_TIME + expose: time.sleep(0.05) @@ -158,6 +161,7 @@ class Pixel(DeviceBase, Readable, Readable.IntegerType): # Then wait for the pixel detector to become ready. # Wait time is 1000 x 0.05 sec = 50 sec. # + print "D" sms_flag = 0 while (True): stat = self.get_status() @@ -176,7 +180,7 @@ class Pixel(DeviceBase, Readable, Readable.IntegerType): if sms_flag == 1: notify ("Pixel detector seems to have recovered from error.") - + print "E" def logwrite(self): pass