06.2026
This commit is contained in:
@@ -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
|
||||
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
@@ -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)
|
||||
Executable → Regular
Executable → Regular
Executable → Regular
Reference in New Issue
Block a user