added ioxos daq
This commit is contained in:
Executable
+73
@@ -0,0 +1,73 @@
|
||||
import sys
|
||||
sys.path.append("..")
|
||||
from ..devices_general.motors import MotorRecord
|
||||
from epics import PV
|
||||
|
||||
class XRD:
|
||||
def __init__(self,Id,alias_namespace=None):
|
||||
self.Id = Id
|
||||
|
||||
|
||||
### motors heavy load table ###
|
||||
self.xhl = MotorRecord(Id+':MOT_TBL_TX')
|
||||
self.zhl = MotorRecord(Id+':MOT_TBL_TZ')
|
||||
self.yhl = MotorRecord(Id+':MOT_TBL_TY')
|
||||
self.th = MotorRecord(Id+':MOT_MY_RYTH')
|
||||
try:
|
||||
self.rxhl = MotorRecord(Id+':MOT_TBL_RX')
|
||||
except:
|
||||
print ('GPS.pitch not found')
|
||||
pass
|
||||
try:
|
||||
self.ryhl = MotorRecord(Id+':MOT_TBL_RY')
|
||||
except:
|
||||
print ('GPS.roll not found')
|
||||
pass
|
||||
|
||||
### motors heavy load gonio base ###
|
||||
self.xmu = MotorRecord(Id+':MOT_HEX_TX')
|
||||
self.mu = MotorRecord(Id+':MOT_HEX_RX')
|
||||
self.tth = MotorRecord(Id+':MOT_NY_RY2TH')
|
||||
self.xbase = MotorRecord(Id+':MOT_TX')
|
||||
self.ybase = MotorRecord(Id+':MOT_TY')
|
||||
|
||||
self.hex_x = PV("SARES20-HEX_PI:POSI-X")
|
||||
self.hex_y = PV("SARES20-HEX_PI:POSI-Y")
|
||||
self.hex_z = PV("SARES20-HEX_PI:POSI-Z")
|
||||
self.hex_u = PV("SARES20-HEX_PI:POSI-U")
|
||||
self.hex_v = PV("SARES20-HEX_PI:POSI-V")
|
||||
self.hex_w = PV("SARES20-HEX_PI:POSI-W")
|
||||
|
||||
|
||||
### motors XRD arm ###
|
||||
self.delta = MotorRecord(Id+':MOT_DT_RX2TH')
|
||||
self.det_z = MotorRecord(Id+':MOT_D_T')
|
||||
self.cam_z = MotorRecord(Id+':MOT_P_T')
|
||||
|
||||
|
||||
|
||||
|
||||
def __repr__(self):
|
||||
s = "**Heavy Load**\n"
|
||||
motors = "xmu mu tth xbase ybase".split()
|
||||
for motor in motors:
|
||||
s+= " - %s %.4f\n"%(motor,getattr(self,motor).wm())
|
||||
|
||||
s+= " - xhl %.4f\n"%(self.xhl.wm())
|
||||
s+= " - yhl %.4f\n"%(self.yhl.wm())
|
||||
s+= " - zhl %.4f\n"%(self.zhl.wm())
|
||||
s+= " - th %.4f\n"%(self.th.wm())
|
||||
s+= "\n"
|
||||
|
||||
s+= "**Gonio**\n"
|
||||
motors = "xmu mu tth delta det_z cam_z xbase ybase".split()
|
||||
for motor in motors:
|
||||
s+= " - %s %.4f\n"%(motor,getattr(self,motor).wm())
|
||||
s+= "\n"
|
||||
|
||||
s+= "**Hexapod**\n"
|
||||
motors = "x y z u v w".split()
|
||||
for motor in motors:
|
||||
s+= " - hex_%s %.4f\n"%(motor,getattr(self,"hex_"+motor).get())
|
||||
return s
|
||||
|
||||
Reference in New Issue
Block a user