Script execution

This commit is contained in:
gac-x04sa
2018-10-16 11:20:19 +02:00
parent eb4f346774
commit 1946672383
+4 -2
View File
@@ -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)