This commit is contained in:
gac-x11ma
2026-06-24 13:28:45 +02:00
parent b658ce0a15
commit 97ecbd2af2
113 changed files with 5193 additions and 456368 deletions
@@ -0,0 +1,10 @@
# From Alexandre Gobbo, see MS Teams
# After you run it the first time you must configure the device, and the initialize it:
class EnergyPGM(Positioner):
def doWrite(self, val):
energy_pgm.getSetpoint().write(val)
caput ("X11MA-PGM:setE.PROC", 1)
add_device(EnergyPGM("energy_pgm", "X11MA-PGM:energy", "X11MA-PGM:rbkenergy"), True)
energy_pgm.monitored=True
View File
View File
View File
View File
View File
View File
@@ -0,0 +1,9 @@
index=0
def after_read(rec):
if rec[ai2] < 0:
time.sleep(1.0)
rec.invalidate()
a= lscan((m1), (ai1,ai2), (0,), (0.4,), 20, 0.1, after_read=after_read)
@@ -0,0 +1,12 @@
testing = get_exec_pars().getSource()==CommandSource.ui
if testing:
START=780.0
END= 800.0
STEP_SIZE=1.0
lscan (BML_energy, CADC2, START, END, STEP_SIZE)
View File
View File
View File