Script execution

This commit is contained in:
gac-x04sa
2018-10-30 11:08:39 +01:00
parent 6f36671df7
commit 3a933a0bc1
+5 -1
View File
@@ -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