Add crystal control
This commit is contained in:
@@ -180,6 +180,20 @@ class PSSSGratingSet(DiscretePositioner):
|
||||
add_device(PSSSGratingSet("psss_grating", "SARFE10-PSSS055:GRATING_SP"), True)
|
||||
psss_grating.alias = "grating"
|
||||
psss_grating.monitored=True
|
||||
|
||||
class PSSSCrystalSet(DiscretePositioner):
|
||||
def doWrite(self, val):
|
||||
if not is_dry_run():
|
||||
super(PSSSCrystalSet, self).doWrite(val)
|
||||
#caput(psss_grating.getSetpoint().getChannelName(), val)
|
||||
#self.setCache(val)
|
||||
exec_cpython("/ioc/modules/qt/PSSS_motion.py", args = ["-m2", "SARFE10-PSSS059"])
|
||||
# python / ioc / modules / qt / PSSS_motion.py - m1 SARFE10 - PSSS059
|
||||
time.sleep(1)
|
||||
|
||||
add_device(PSSSCrystalSet("psss_crystal", "SARFE10-PSSS059:CRYSTAL_SP"), True)
|
||||
psss_crystal.alias = "grating"
|
||||
psss_crystal.monitored=True
|
||||
###################################################################################################
|
||||
# Tools
|
||||
###################################################################################################
|
||||
|
||||
Reference in New Issue
Block a user