From 3b525809be389bfeff426dbef93f6c47ce59c541 Mon Sep 17 00:00:00 2001 From: gac-x04sa Date: Tue, 16 Oct 2018 11:28:54 +0200 Subject: [PATCH] Script execution --- script/device/Mythen.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script/device/Mythen.py b/script/device/Mythen.py index 3b26399..e320cee 100644 --- a/script/device/Mythen.py +++ b/script/device/Mythen.py @@ -1,6 +1,6 @@ -class Mythen(DeviceBase): +class Mythen(DeviceBase, Readable): def __init__(self, name, prefix): DeviceBase.__init__(self, name) self.prefix = prefix @@ -50,5 +50,8 @@ class Mythen(DeviceBase): self.get_total_counts() self.is_acquiring() + def read(self): + return self.get_total_counts() + add_device( Mythen("mythen", "X04SA-ES2-SD1"), True)