Skip to content
Snippets Groups Projects
Commit d8163290 authored by Florian Ziegler's avatar Florian Ziegler
Browse files

Added Sequential Buffering command to AmptekPX5

parent 0f854eb7
No related branches found
No related tags found
No related merge requests found
...@@ -514,6 +514,14 @@ class AmptekPX5(Device): ...@@ -514,6 +514,14 @@ class AmptekPX5(Device):
def StopCommtestStreaming(self): def StopCommtestStreaming(self):
self.interface.StopCommtestStreaming() self.interface.StopCommtestStreaming()
@command
def StartHardwareBuffering(self):
self.interface.startHardwareBuffering()
@command
def StopHardwareBuffering(self):
self.interface.stopHardwareBuffering()
@command(dtype_in = int) @command(dtype_in = int)
def BufferSpectrum(self, index): def BufferSpectrum(self, index):
...@@ -600,6 +608,10 @@ class AmptekPX5(Device): ...@@ -600,6 +608,10 @@ class AmptekPX5(Device):
def GetTecVoltage(self, max_age_ms): def GetTecVoltage(self, max_age_ms):
return self.get_status_attribute(max_age_ms, "TecVoltage") return self.get_status_attribute(max_age_ms, "TecVoltage")
@command(dtype_in = float, dtype_out = bool)
def IsHardwareBufferingRunning(self, max_age_ms):
return self.get_status_attribute(max_age_ms, "SequentialBufferRunning")
@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