psen stuff
This commit is contained in:
@@ -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
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user