dac example

This commit is contained in:
Erik Frojdh
2020-08-20 14:52:47 +02:00
parent c8a39d1d9e
commit 534c7105f4
3 changed files with 43 additions and 0 deletions

View File

@ -92,6 +92,9 @@ class DetectorDacs:
dac_array[i,:] = _d[:]
return dac_array
def to_array(self):
return self.get_asarray()
def set_from_array(self, dac_array):
"""
Set the dacs from an numpy array with dac values. [ndacs, nmodules]

View File

@ -637,6 +637,10 @@ class Detector(CppDetectorApi):
def reg(self):
return self._register
@property
def daclist(self):
return self.getDacList()
@property
def adcreg(self):
"""[Jungfrau][Ctb][Moench][Gotthard] Writes to an adc register