Adding server modules

This commit is contained in:
2024-01-09 10:47:51 +01:00
parent 4ed4630b8d
commit a0b5ce4c58
5 changed files with 196 additions and 1 deletions

View File

@ -47,9 +47,12 @@ class AdaptiveOrbit:
print("Initializing EPICS Channels")
pvs = []
for x in chx:
if ':X1' in x or ':X2' in x:
if ':X1' in x:
pvs.append(PV(x.replace(':X1',':X-REF-FB')))
pvs.append(PV(x.replace(':X1',':Y-REF-FB')))
elif ':X2' in x:
pvs.append(PV(x.replace(':X2',':X-REF-FB')))
pvs.append(PV(x.replace(':X2',':Y-REF-FB')))
else:
pvs.append(PV(x))
con = [pv.wait_for_connection(timeout=0.2) for pv in pvs]