psen stuff

This commit is contained in:
2018-05-27 16:58:07 +02:00
parent 9f98c7a402
commit ec5c10a859
2 changed files with 31 additions and 0 deletions
+5
View File
@@ -181,6 +181,11 @@ aliases = {
'z_und' : 142,
'desc' : 'Streaking arrival time monitor',
'eco_type' : 'timing.palm.Palm'},
'SLAAR21-LMOT' : {
'alias' : 'Psen',
'z_und' : 142,
'desc' : 'Streaking arrival time monitor',
'eco_type' : 'timing.psen.Psen'}
# = dict(
# alias = ''
# z_und =
Executable
+26
View File
@@ -0,0 +1,26 @@
from ..devices_general.motors import MotorRecord
from ..devices_general.smaract import SmarActRecord
from epics import PV
from ..devices_general.delay_stage import DelayStage
class Psen:
def __init__(self,Id):
self.Id = Id
self._delayStg = MotorRecord(self.Id+'-M561:MOT')
self.delay = DelayStage(self._delayStg)
def get_adjustable_positions_str(self):
ostr = '*****PSEN motor positions******\n'
for tkey,item in self.__dict__.items():
if hasattr(item,'get_current_value'):
pos = item.get_current_value()
ostr += ' ' + tkey.ljust(10) + ' : % 14g\n'%pos
return ostr
def __repr__(self):
return self.get_adjustable_positions_str()