Added I0 chamber
This commit is contained in:
@ -10,6 +10,7 @@ from slic.devices.xoptics.kb import KBHor, KBVer
|
|||||||
from slic.devices.xoptics.offsetmirrors import OffsetMirror
|
from slic.devices.xoptics.offsetmirrors import OffsetMirror
|
||||||
|
|
||||||
from .pp_shutter import PP_Shutter
|
from .pp_shutter import PP_Shutter
|
||||||
|
from .i0_chamber import i0_chamber
|
||||||
|
|
||||||
# Attenuators
|
# Attenuators
|
||||||
upstream_attenuator = Attenuator("SARFE10-OATT053", description="Aramis attenuator OATT053")
|
upstream_attenuator = Attenuator("SARFE10-OATT053", description="Aramis attenuator OATT053")
|
||||||
@ -67,3 +68,6 @@ mono = CristallinaMono("SAROP31-ODCC110")
|
|||||||
# Offset mirrors
|
# Offset mirrors
|
||||||
m3 = OffsetMirror('SAROP31-ODMV152')
|
m3 = OffsetMirror('SAROP31-ODMV152')
|
||||||
#TODO the other two offset mirros
|
#TODO the other two offset mirros
|
||||||
|
|
||||||
|
# I0 chamber
|
||||||
|
i0 = i0_chamber('SARES30-MCS20610')
|
30
beamline/i0_chamber.py
Normal file
30
beamline/i0_chamber.py
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
from slic.core.device import Device
|
||||||
|
from slic.core.adjustable import PVAdjustable
|
||||||
|
from slic.devices.general.motor import Motor
|
||||||
|
|
||||||
|
class i0_chamber(Device):
|
||||||
|
def __init__(self, ID, name="Cristallina I0 chamber with slits and foils", process_time=1, **kwargs):
|
||||||
|
super().__init__(ID, name=name, **kwargs)
|
||||||
|
|
||||||
|
self.foils = Motor(ID+":MCS3", name="Cristallina I0 chamber foil selecting smaract stage")
|
||||||
|
self.slits = i0_slits_unit(ID,name="Cristallina I0 chamber slits")
|
||||||
|
|
||||||
|
class i0_slits_unit(Device):
|
||||||
|
def __init__(self, ID, **kwargs):
|
||||||
|
super().__init__(ID, **kwargs)
|
||||||
|
|
||||||
|
self.x_center = PVAdjustable(ID + "-XSLIT:SLIT_POS")
|
||||||
|
self.width = PVAdjustable(ID + "-XSLIT:SLIT_WIDTH")
|
||||||
|
self.y_center = PVAdjustable(ID + "-YSLIT:SLIT_POS")
|
||||||
|
self.height = PVAdjustable(ID + "-YSLIT:SLIT_WIDTH")
|
||||||
|
|
||||||
|
self.motors = i0_slits_motors(ID,name='Individual I0 chamber slit motors')
|
||||||
|
|
||||||
|
class i0_slits_motors(Device):
|
||||||
|
def __init__(self, ID, **kwargs):
|
||||||
|
super().__init__(ID, **kwargs)
|
||||||
|
|
||||||
|
self.x1 = Motor(ID + ":MCS4")
|
||||||
|
self.x2 = Motor(ID + ":MCS5")
|
||||||
|
self.y1 = Motor(ID + ":MCS2")
|
||||||
|
self.y2 = Motor(ID + ":MCS1")
|
@ -107,6 +107,7 @@ from beamline.components import (
|
|||||||
pbps113,
|
pbps113,
|
||||||
mono,
|
mono,
|
||||||
m3,
|
m3,
|
||||||
|
i0,
|
||||||
)
|
)
|
||||||
|
|
||||||
from beamline.components import kbHor, kbVer
|
from beamline.components import kbHor, kbVer
|
||||||
|
Reference in New Issue
Block a user