ultrasound: change control roi0 to a Readable (2)

+ remove cfg/PEUS.py
+ fix equipment_id of PEUS
+ add header to frappy_psi.iqplot
This commit is contained in:
Ultrasound PC
2025-03-26 16:45:53 +01:00
parent 1325c8924d
commit d9f340dce6
2 changed files with 23 additions and 12 deletions

View File

@@ -83,10 +83,8 @@ class Roi(Readable):
return Done
class ControlRoi(Roi, Writable):
class ControlRoi(Roi, Readable):
freq = Attached()
# target is not releavnt -> always moving to I to zero
target = Parameter(datatype=Roi.value.datatype, export=False)
maxstep = Parameter('max frequency step', FloatRange(unit='Hz'), readonly=False,
default=10000)
minstep = Parameter('min frequency step for slope calculation', FloatRange(unit='Hz'),
@@ -122,10 +120,6 @@ class ControlRoi(Roi, Writable):
elif self.control_active:
self._freq_target = self.freq.write_target(clamp(freq - self.maxstep, newfreq, freq + self.maxstep))
def write_target(self, value):
self.control_active = True
return 0
class Pars(Module):
description = 'relevant parameters from SEA'