diff --git a/devices_general/detectors.py b/devices_general/detectors.py index 2cf912f..c4c2c11 100755 --- a/devices_general/detectors.py +++ b/devices_general/detectors.py @@ -85,6 +85,7 @@ class FeDigitizer: def __init__(self,Id,elog=None): self.Id = Id self.gain = EnumWrapper(Id+'-WD-gain') + self.bias = PV(Id+'-HV_SET') self.channels = [ Id+'-BG-DATA', Id+'-BG-DRS_TC', @@ -93,6 +94,14 @@ class FeDigitizer: Id+'-DRS_TC', Id+'-PULSEID-valid'] + def set_bias(self, value) + bias = PV(Id+'-HV_SET') + bias.put(value) + return 'Bias set to %sV'%(bias.value) + + def get_bias(self) + return PV(Id+'-HV_SET').value + class DiodeDigitizer: def __init__(self,Id,VME_crate=None,link=None, ch_0=7,ch_1=8,