[WIP] fixes for linse-fi

Change-Id: Iac28e9654a764331cd903896879834cd6127a919
This commit is contained in:
2025-04-14 11:46:02 +02:00
parent c368292873
commit 7254d7f95c
4 changed files with 25 additions and 15 deletions

View File

@@ -17,12 +17,16 @@
# Markus Zolliker <markus.zolliker@psi.ch>
# *****************************************************************************
"""interlocks for furnance"""
"""interlocks for furnace"""
import time
from frappy.core import Module, Writable, Attached, Parameter, FloatRange, Readable,\
BoolType, ERROR, IDLE
from frappy.mixins import HasControlledBy
from frappy_psi.picontrol import PImixin
from frappy_psi.convergence import HasConvergence
import frappy_psi.tdkpower as tdkpower
import frappy_psi.bkpower as bkpower
class Interlocks(Module):
@@ -76,8 +80,8 @@ class Interlocks(Module):
self.relais.write_target(False)
class PI(PImixin, Writable):
input = Attached(Readable, 'the input module')
class PI(HasConvergence, PImixin):
input_module = Attached(Readable, 'the input module')
relais = Attached(Writable, 'the interlock relais', mandatory=False)
def read_value(self):
@@ -87,3 +91,11 @@ class PI(PImixin, Writable):
super().write_target(value)
if self.relais:
self.relais.write_target(1)
class TdkOutput(HasControlledBy, tdkpower.Output):
pass
class BkOutput(HasControlledBy, bkpower.Output):
pass