Add energy, grating and ROI control

This commit is contained in:
2022-03-21 11:38:41 +01:00
parent 54383de1c3
commit ed0b082c7c
3 changed files with 348 additions and 24 deletions

View File

@@ -163,8 +163,23 @@ class PSSSEnergySet(RegisterBase):
add_device(PSSSEnergySet("psss_energy_set"), True)
psss_energy_set.alias = "energy"
psss_energy_set.polling=1000
class PSSSGratingSet(DiscretePositioner):
def doWrite(self, val):
if not is_dry_run():
super(PSSSGratingSet, self).doWrite(val)
#caput(psss_grating.getSetpoint().getChannelName(), val)
#self.setCache(val)
exec_cpython("/ioc/modules/qt/PSSS_motion.py", args = ["-m3", "SARFE10-PSSS059"])
# python / ioc / modules / qt / PSSS_motion.py - m1 SARFE10 - PSSS059
time.sleep(1)
add_device(PSSSGratingSet("psss_grating", "SARFE10-PSSS055:GRATING_SP"), True)
psss_grating.alias = "grating"
psss_grating.monitored=True
###################################################################################################
# Tools
###################################################################################################