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

  1. Check repetition rate:
    1. Pulse picker screen: PP trigger opens EVR screen (XRT:EVR:R48), "Rate" shows you the rate the pulse picker is running at
    2. 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.
  2. Change the event code
    1. Make sure the DAQ is not running (Target State: End Run)
    2. 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)
      1. 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).
  3. Change repetition rate:
    1. Use hutchpython: mfx_timing.set_20hz(), this function automatically fills in 20 Hz event sequencer code
      1. Can also rayonix.configure_sequencer(20): does the same, but for rayonix specifically
  4. Change binning on Rayonix from 4x4 to 3x3:
    1. ssh -X hsuser@con-ics-mfx-rayonix

    2. killall procServ

    3. open Capxure: capxure

    4. select Single Frame Collection: set binning to 3x3 (2560x2560) instead of 4x4 (1920x1920)

    5. 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

    6. exit out of Capxure: File > Quit

    7. turn Rayonix back on: cd slac/ (/home/hsuser/slac), then run ./startDaqInterface_newcraydl

    8. then you can exit

  5. Change binning in DAQ:
    1. Configuration →  Edit →  Rayonix →  RayonixConfig →  Set resolution to binning 3x3
  • No labels