Script execution
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user