Grid Detect Then Xray Centre#

The aim of this page is to provide a general overview of the grid_detect_then_xray_centre_plan.

The code for the grid_detect_then_xray_centre plan is now entirely mx-bluesky/common/ and dodal. There is a new Hyperion entry point, hyperion_grid_detect_then_xray_centre which calls this common plan, setting up Hyperion features for it. There will soon be an i04 entry point that calls the common plan in the same way.

There are then a number of plans that make up the grid_detect_then_xray_centre_plan plan. Some important ones:

The diagram below shows all the plans that make up the grid_detect_then_xray_centre_plan.

../../_images/grid_detect_then_xray_centre.drawio.png

Grid Detect Then Xray Centre Plan#

This plan does the following, in roughly this order:

  1. If called standalone, start preparing for data collection.

  2. Move the beamstop into place if it isn’t already.

  3. Perform an OAV grid detection.

  4. Convert the parameters calculated in step 2 into something we can send to the flyscan X-ray centre.

  5. Move the backlight out, set the aperture to small, and wait for the detector to finish moving.

  6. Perform a flyscan X-ray centre.

  7. Move the sample based on the results of step 5.

OAV Grid Detection#

This plan does the following, in roughly this order:

  1. Move to omega 0.

  2. Calculate the 2D grid size using the edge arrays from the OAV.

  3. Trigger the OAV device to take snapshots, both with and without the grid.

  4. Read the snapshot paths (which will be gathered for ispyb in the background).

  5. Repeat steps 2–4 for omega 90.

  6. Return the grid positions.

Flyscan Xray Centre No Move#

This plan does the following, in roughly this order:

  1. Move to the desired transmission (and turn off xbpm feedback).

  2. Move to omega 0.

  3. Read hardware values for ispyb (a grid scan entry will be added in the background).

  4. Set up zebra and motion devices for a grid scan to be done in the motion controller.

  5. Wait for the Eiger to finish arming or arm the Eiger if it hasn’t already been done.

  6. Run the motion control grid scan.

  7. Wait for the grid scan to end.

  8. Retrieve the X-ray centering results from Zocalo (which will be gathered in the background).