From 3932b2f9cbea3b36e304919aac71fd9913977a9c Mon Sep 17 00:00:00 2001 From: gac-x04sa Date: Mon, 29 Oct 2018 12:20:01 +0100 Subject: [PATCH] Script execution --- script/device/Mythen.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/script/device/Mythen.py b/script/device/Mythen.py index cd0a382..6a84874 100644 --- a/script/device/Mythen.py +++ b/script/device/Mythen.py @@ -52,9 +52,15 @@ class Mythen(DeviceBase, Readable): return caget(self.prefix + ":cam1:DetectorState_RBV") def doUpdate(self): - self.get_total_counts() + self.read() self.is_acquiring() + def abort(): + while (mythen.is_acquiring()): + mythen.stop() + time.sleep(0.25) + + def read(self): return self.get_total_counts()