10 lines
389 B
Python
10 lines
389 B
Python
# 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 |