From 19466723839d4321908c99f486423bf97a5c30f4 Mon Sep 17 00:00:00 2001 From: gac-x04sa Date: Tue, 16 Oct 2018 11:20:19 +0200 Subject: [PATCH] Script execution --- script/device/Mythen.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/script/device/Mythen.py b/script/device/Mythen.py index 2be42a4..022f382 100644 --- a/script/device/Mythen.py +++ b/script/device/Mythen.py @@ -2,7 +2,7 @@ class Mythen(DeviceBase): def __init__(self, name, prefix): - .__init__(self, name) + DeviceBase.__init__(self, name) self.prefix = prefix def set_acquire_time(self, value): @@ -38,7 +38,9 @@ class Mythen(DeviceBase): caput( self.prefix + ":cam1:Acquire",0) def get_total_counts(self): - return caget( self.prefix + ":Stats5:Total_RBV", 'i') + ret = caget( self.prefix + ":Stats5:Total_RBV", 'i') + self.setCache(ret) + return ret add_device( Mythen("mythen", "X04SA-ES2-SD1"), True)