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:
parent
0a98776e27
commit
20596744f9
@ -275,9 +275,12 @@ class TemperatureLoop(ScannerChannel, mercury.TemperatureLoop):
|
|||||||
self.change('SYS:DR:CHAN:%s' % self.system_channel, self.slot.split(',')[0], str)
|
self.change('SYS:DR:CHAN:%s' % self.system_channel, self.slot.split(',')[0], str)
|
||||||
if active:
|
if active:
|
||||||
self.change('DEV::TEMP:LOOP:FILT:ENAB', 'ON', str)
|
self.change('DEV::TEMP:LOOP:FILT:ENAB', 'ON', str)
|
||||||
if self.output_module:
|
try:
|
||||||
limit = self.output_module.read_limit()
|
limit = self.output_module.read_limit()
|
||||||
|
# output_module is an instance of HeaterOutputWithRange
|
||||||
self.output_module.write_limit(limit)
|
self.output_module.write_limit(limit)
|
||||||
|
except AttributeError:
|
||||||
|
pass # output_module is None or an instance of HeaterOutput
|
||||||
|
|
||||||
|
|
||||||
class HeaterOutput(HasInput, MercuryChannel, Writable):
|
class HeaterOutput(HasInput, MercuryChannel, Writable):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user