Auto beam position control
Automated procedure that steers the beam to the optimal position.
In our beamline the beam moves away from the optimal path when the photon energy is changed. To compensate for this effect one can move one of the SMU mirrors by hand to bring the beam back.
Now there is an automated procedure that can control the beam position and keep it optimal.
To start it (for example after PC was rebooted) you will need to do the following:
Open powershell (or open a new tab in the existing one, e.g. the one used for beamline control).
Type in
ssh melmak2
and press enter to execute (this is to connect to the Raspberry Pi)Execute
caMonitor vxi-11/psdutil/pvNames.txt
(to monitor mono status)Open another tab in powershell and also execute
ssh melmak2
Execute
psdControl bruecke13,1,4 lcmAB
(this will start the main script that does the adjustment)If you want to stop it, type in
q
and press Enter. The error message "Error opening /dev/ttyUSB0: No such file or directory" will appear, this is normal.
General info about how it works
//maybe a figure with explanation will help
There is a special device inside the beamline at the position of the slit that is monitored by a camera. Beam hits both plates and one can measure photocurrent from each of them, this is done by two Keithley ampermeters located on top of the rack of 1^3 beamline (//need a photo). These two currents change monotonously as a function of beam position (one increases and another one decreases) and the optimal position is calibrated to be at the point where the currents are equal. To avoid electrons excited from one plate to reach the other one (which would lead to erroneous measurements) there is a bias voltage of 100 V applied between the plates.
The current signals from Keithleys are passed to a Raspberry Pi which (if current is large enough) will move the SMU M3 in decreasing steps until the currents are equal.
The procedure waits for the mono and undulator to reach their destinations before it starts any adjustments.
Troubleshooting
If the terminal was closed without quitting the beam control procedure correctly by q
it could happen that the procedure will not do anything next time. In this case try to quit the procedure with q
, then switch two Keithley devices off and on again, then start the procedure again.
Last updated
Was this helpful?