Skip to content
Snippets Groups Projects
Commit b3556276 authored by Christian Koernig's avatar Christian Koernig
Browse files

Add access to GP Counter and Hardware Buffer Index

parent d8163290
Branches
Tags
No related merge requests found
...@@ -612,6 +612,14 @@ class AmptekPX5(Device): ...@@ -612,6 +612,14 @@ class AmptekPX5(Device):
def IsHardwareBufferingRunning(self, max_age_ms): def IsHardwareBufferingRunning(self, max_age_ms):
return self.get_status_attribute(max_age_ms, "SequentialBufferRunning") return self.get_status_attribute(max_age_ms, "SequentialBufferRunning")
@command(dtype_in = float, dtype_out = float)
def HardwareBufferingIndex(self, max_age_ms):
return self.get_status_attribute(max_age_ms, "SequentialBufferIndex")
@command(dtype_in = float, dtype_out = float)
def GpCounter(self, max_age_ms):
return self.get_status_attribute(max_age_ms, "GpCount")
@command @command
def ClearAlarm(self): def ClearAlarm(self):
self.set_state(DevState.ON) self.set_state(DevState.ON)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment