frappy_psi.triton: fix heater output issue

when output_module is not HeaterOutputWith range, the heater limit
can not be changed

Change-Id: If25a609e9f9667dc111cb220024388a51df993ec
Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/33913
Tested-by: Jenkins Automated Tests <pedersen+jenkins@frm2.tum.de>
Reviewed-by: Markus Zolliker <markus.zolliker@psi.ch>
This commit is contained in:
zolliker 2023-12-12 12:11:13 +01:00
parent 0a98776e27
commit 20596744f9

View File

@ -275,9 +275,12 @@ class TemperatureLoop(ScannerChannel, mercury.TemperatureLoop):
self.change('SYS:DR:CHAN:%s' % self.system_channel, self.slot.split(',')[0], str)
if active:
self.change('DEV::TEMP:LOOP:FILT:ENAB', 'ON', str)
if self.output_module:
try:
limit = self.output_module.read_limit()
# output_module is an instance of HeaterOutputWithRange
self.output_module.write_limit(limit)
except AttributeError:
pass # output_module is None or an instance of HeaterOutput
class HeaterOutput(HasInput, MercuryChannel, Writable):