devices.py: added make_tell_client functionality and updated motor pvs
This commit is contained in:
1 parent
bd2d6459b2
commit
75234b4cc5
1 file changed
+12
-12
+12
-12
@@ -21,12 +21,12 @@ from aare.devices.enum_pv import EnumPV
|
||||
from aare.devices.my_motor import MyMotor
|
||||
|
||||
from aare.devices.set_get_pv import SetGetPV, PredefinedPV
|
||||
from aare.devices.tell_client import TellClient
|
||||
from aare.devices.tell_client import make_tell_client
|
||||
|
||||
class BeamlineDevices:
|
||||
def __init__(self, beamline: MXBeamline):
|
||||
BEAMLINE = beamline.value.upper()
|
||||
self.tell = TellClient(beamline)
|
||||
self.tell = make_tell_client(beamline)
|
||||
self.__aerotech = aerotech.AerotechControllerEpics(beamline)
|
||||
self.aerotech = aerotech.AerotechController(controller_ip="129.129.118.96")
|
||||
self.__smargon = smargon.Smargon(beamline)
|
||||
@@ -40,11 +40,11 @@ class BeamlineDevices:
|
||||
setpv=f"{BEAMLINE}-ES-DETCOV:SET",
|
||||
getpv=f"{BEAMLINE}-ES-DETCOV:GET")
|
||||
|
||||
self.__sample_cam = epicsAD(f"{BEAMLINE}-SAMCAM:")
|
||||
self.__sample_cam = epicsAD(f"{BEAMLINE}-ES-MS:")
|
||||
|
||||
self.__front_light = PredefinedPV(name='front_light',
|
||||
setpv=f"{BEAMLINE}-ES-FL:SET",
|
||||
getpv=f"{BEAMLINE}-ES-FL:GET",
|
||||
getpv=f"{BEAMLINE}-ES-FL:SET",
|
||||
predefs={"off":1.49,
|
||||
'half':2.0,
|
||||
'max':3.0},
|
||||
@@ -52,7 +52,7 @@ class BeamlineDevices:
|
||||
)
|
||||
self.__back_light = PredefinedPV(name='back_light',
|
||||
setpv =f"{BEAMLINE}-ES-BL:SET",
|
||||
getpv=f"{BEAMLINE}-ES-BL:GET",
|
||||
getpv=f"{BEAMLINE}-ES-BL:SET",
|
||||
predefs={"off": 0,
|
||||
'half': 0.98,
|
||||
'max': 1.2},
|
||||
@@ -64,8 +64,8 @@ class BeamlineDevices:
|
||||
getpv = f"{BEAMLINE}-ES-BL:POS-GET",
|
||||
timeout = 10.0)
|
||||
|
||||
self.__collimator_pos = PV(f"{BEAMLINE}-ES-COL:TRY")
|
||||
self.__collimator_z = MyMotor(f"{BEAMLINE}-ES-COL:TRZ") # HOW TO HANDLE!!!
|
||||
self.__collimator_pos = MyMotor(f"{BEAMLINE}-ES-COL:TRY")
|
||||
self.__collimator_X = MyMotor(f"{BEAMLINE}-ES-COL:TRX") # HOW TO HANDLE!!!
|
||||
|
||||
self.__scintillator_pos = PV(f"{BEAMLINE}-ES-SCL:TRY") # how to handle!!!
|
||||
self.__scintillator_z = PV(f"{BEAMLINE}-ES-SCL:TRZ")
|
||||
@@ -81,8 +81,8 @@ class BeamlineDevices:
|
||||
|
||||
|
||||
self.__zoom = SetGetPV(name = f"zoom",
|
||||
setpv = f"{BEAMLINE}-ES-SAMCAM:ZOOM.VAL",
|
||||
getpv = f"{BEAMLINE}-ES-SAMCAM:ZOOM.RBV")
|
||||
setpv = f"{BEAMLINE}-ES-MS:ZOOM.VAL",
|
||||
getpv = f"{BEAMLINE}-ES-MS:ZOOM.RBV")
|
||||
|
||||
self.__cryojet_pos = EnumPV(name='cryojet_pos',
|
||||
setpv = f"{BEAMLINE}-ES-CS:POS-SET",
|
||||
@@ -292,9 +292,9 @@ class BeamlineDevices:
|
||||
|
||||
@aerotech_pos.setter
|
||||
def aerotech_pos(self, pos: Coordinate):
|
||||
self.__aerotech.gmx.move(pos.x, wait=False)
|
||||
self.__aerotech.gmy.move(pos.y, wait=False)
|
||||
self.__aerotech.gmz.move(pos.z, wait=False)
|
||||
# self.__aerotech.gmx.move(pos.x, wait=False)
|
||||
# self.__aerotech.gmy.move(pos.y, wait=False)
|
||||
# self.__aerotech.gmz.move(pos.z, wait=False)
|
||||
self.__aerotech.gmx.move(pos.x, wait=True)
|
||||
self.__aerotech.gmy.move(pos.y, wait=True)
|
||||
self.__aerotech.gmz.move(pos.z, wait=True)
|
||||
|
||||
Reference in new issue
Block a user