Background
Rayonix binning 4x4 (1920x1920, typical resolution) can run at 30 Hz
Rayonix binning 3x3 (2560x2560) can only run at 20 Hz
Therefore, next to changing the binning, you will need to change the repetition rate from 30 Hz to 20 Hz.
Procedure for changing binning to 3x3 and adjusting to 20 Hz repetition rate
- Check repetition rate:
- Pulse picker screen: PP trigger opens EVR screen (XRT:EVR:R48), "Rate" shows you the rate the pulse picker is running at
- You can also check the event sequencer screen (found in mfxhome, under the tab "LCLS", "Event Sequencer"). The repetition rate is (Sync Marker (Hz) / total(delta beam); e.g., delta beam adds up to 6, so the repetition rate is 120 Hz/6 = 20 Hz.
- Change the event code
- Make sure the DAQ is not running (Target State: End Run)
- Edit the configuration: Configuration → Edit → select EVR → select EVR config → select tab "EventCodes" under DAQ control → Enable Global Code 42 (30 Hz), turn off Global Code 40 (120 Hz)
- Also make sure the Global Code 140 and 137 are turned on. Also make sure Sequencer Code 198 is turned on (this is the trigger that makes sure all devices specified in the DAQ are read out).
- Change repetition rate:
- Use hutchpython: mfx_timing.set_20hz(), this function automatically fills in 20 Hz event sequencer code
- Can also rayonix.configure_sequencer(20): does the same, but for rayonix specifically
- Use hutchpython: mfx_timing.set_20hz(), this function automatically fills in 20 Hz event sequencer code
- Change binning on Rayonix from 4x4 to 3x3:
ssh -X hsuser@con-ics-mfx-rayonix
killall procServ
open Capxure: capxure
select Single Frame Collection: set binning to 3x3 (2560x2560) instead of 4x4 (1920x1920)
take a dark: while exposure type is normal, click New Background, set exposure type to Dark, click New Background, then set exposure type back to normal
exit out of Capxure: File > Quit
turn Rayonix back on: cd slac/ (/home/hsuser/slac), then run ./startDaqInterface_newcraydl
then you can exit
- Change binning in DAQ:
- Configuration → Edit → Rayonix → RayonixConfig → Set resolution to binning 3x3