Set the harmonic of an undulator

The macro set_harmonic changes the Harmonic attribute of an undulator server and sets the write_value of the Energy attribute accordingly, e.g.:

set_harmonic 3

To identify the undulator device, the macro searches for energy_und. If this name does not exist, the macro tries to translate the MacroServer environment variable UndulatorDevice. The user may have set this by:

senv UndulatorDevice my_undulator_name_in_Pool



2019-11-13