$$\rightleftharpoonup{xx}$$
$$\longleftharp{xx}$$,
$$\longrightharp{xx}$$,
Figure 1 shows the Yaskawa GP7 sample-changer robot installed on the Diamond I13-2 Imaging beamline. Figure 1A shows the robot (1) and the in-house designed flexure gripper (2). This gripper can hold a sample with a diameter of ⤠8mm. Figure 1B shows the robot (1) and optics/X-ray camera system (4) and (6) used for acquiring tomography data. The robot gripper picks the sample from the sample tray (3), which can hold 7 uni-pucks with 16 samples on each, as shown in Figure 1C. Samples are mounted on the aluminum dowel (5), and the tomography data acquisition is performed with the detector system (6). The details of (5) and (6) are provided in the last paragraph of the introduction section. The red broken line in Figure 1B indicates the X-ray beam direction.
Details of the sample mounting scheme and the flexure gripper design are illustrated in Figure 2. Figure 2A shows a cylindrical plastic sample, fabricated by 3D printing, glued to the sample base. The boundary of the sample represents the envelope of the maximum sample height and the diameter. The red arrows indicate the position where the flexure gripper holds the sample base to move it from the sample tray to the tomography stage and vice versa. A 3D design of the flexure gripper is shown in Figure 2B. Fingers of the gripper are actuated by a pneumatically controlled drive tube (Figure 1B, item 2). The central space in the gripper has a diameter of 8.9 mm, as shown in Figure 2C, allowing a maximum sample size of 8 mm with a margin of ~1 mm. Figure 2D shows the picture of the top of the tomography stage. An Aluminum dowel is mounted on top of the two orthogonal stages and a magnetic disc, which has an exact diameter such that the recess on the bottom of the sample base fits. Since this disc is magnetic, it holds the mounted sample base firmly in place during the tomography measurements.
For this representative experiment, 64 insect samples provided by the Natural History Museum (NHM) in London have been selected. Specimens were selected to represent a range of arthropod phenotypes while fitting within the size constraints of the gripper. As arthropods, particularly insects, represent the vast majority of known species diversity, with over 1 million named species, they are particularly challenging to sample for comparative studies of phenotype. The present sample therefore demonstrates the potential of this approach by sampling three class-level clades of arthropods: Arachnida, Entognatha, and Insecta, as well as sampling more finely within insects to capture variation in seven orders, including four of the most species-rich orders alive today. Specimens were fixed to a card with adhesive. The cards were then mounted on the sample pins. Mounting samples (insects) directly on the sample pins is avoided since a highly absorbing structure in the beam with low absorption samples will create streak artifacts during the reconstructions, besidesĀ the difficulty of mounting them securely on sample pins. Table 1Ā shows the template samples.csv file that the user will fill in with the required parameters for the tomography (columns A, B, C, E, F, G, H, K). The description of each of the columns is provided in the table. The columns D, I, J, and L in the input_fileĀ are filled in after alignment and optimization of the tomography parameters at the beamline. All 64 samples were first measured with a 1.25x objective (FOV of 6.7 mm x 5.6 mm) at an optimized X-ray propagation distance (from sample to detector), and later the same samples were measured with a 4x objective using its own optimized parameters. Once the samples are loaded onto the sample tray and the experimental hutch is secured, the scan is initiated with GDA.
Automatic alignment of the sample was performed by a script written in Python (Location of the file on GitHub: https://gist.github.com/ndg63276/9b3c5cfe7db26b14930dff3ef889e2bc). At first, sample alignment is set up using a sample base and a sample pin combination without the sample. Figure 3 shows the sample pin, as seen by the side telescope camera (camera positioned at 90° to the X-ray beam- Figure 1B, item 4), which is used as a standard alignment sample. The telescope camera image is binarized so that the sample can be detected from the background. Edges of the sample are determined and marked as a white boundary, as shown in Figure 3. The reference coordinate position of the sample is the top of the pin marked as a white circle in the inset of Figure 3A. Looking at the X-ray image, the ROI of the sample is positioned on the COR, and the required target coordinate position, marked as a blue double-headed arrow cross with a red dot (Figure 3B), is determined on the side camera. This target position setting allows placing the sample not only on the COR, but also a few mm higher/ lower or a bit off center, if needed. After the sample has been loaded on the tomography stage, the automatic centering function is executed. The script first moves the sample to the target position (Figure 3B) and goes to 0°. Next, it moves the sample to 90° (Figure 3C) and determines how much sample needs to be moved to put the sample into the center of rotation (COR). This usually takes about 15-20 s. The sample is now on the COR (Figure 2D), and COR has already been aligned with the center of the camera. The system is now ready for tomography acquisition.
In this NHM insect study, 128 tomography scans were performed without human intervention. The measurement took a total of 17 h. Each scan was about 8 min. Such an experiment without the use of the robot would have taken about 20 to 25 min per tomography scan. This implies that tomography scans with robots are 3-4 times faster than scanning manually for the present case. Table 2 shows a typical log file generated at the end of a robot batch scan, including the parameters required to link each scan number to its corresponding sample. Additional details are provided in the Table 2 legend.
Figure 4 shows normalized projection images of one of the samples, an insect (Class ā Insecta, order ā Coleoptera), imaged during the tomography experiment mentioned above with 1.25x and 4x magnification. The top row, Figure 4A-C, shows a sample imaged with 1.25x, and then the same sample was imaged with 4x, i.e., Figure 4D-F. Figure 4 AāF displays the projection images acquired at 0°, 90°, and 180°. The yellow rectangle shows the FOV of the zoomed-in projection images that are acquired with a 4x objective. It is important to note that once the samples were loaded on the tray shown in Figure 1C, all the processes proceeded without any human intervention. Please note that these two scans were acquired ~8.5 h apart. This indicates the stability and the reproducibility of the setup.
Figure 5 shows horizontal or transverse slices from the set of tomography reconstruction slices of the sample mentioned in Figure 4. Both the 1.25x (Figure 5A) and 4x (Figure 5B) slices are plotted without cropping the images and have 2510 x 2510 pixels. The slices are well-centered within the FOV, which shows that zooming into a region with higher magnification is possible without the need for any physical intervention.
The results presented here demonstrate that implementing a robotic system for sample exchange in synchrotron microātomography experiments provides several significant advantages. These include increased throughput, improved operational efficiency, and the capability to conduct scans at multiple magnifications (zoomāin) without requiring human intervention. Considering the number of samples that need to be scanned, such as in the NHM study presented here, it would be impossible to obtain statistically robust and consistent conclusions through manual scanning.

Figure 1: Picture of the robot and the tomography experimental setup installed in the I13-2 beamline. (A) The robot (1) with an in-house designed flexure gripper (2). (B) The sample loading tray (3) and the tomography stage (5). The Optical camera (Telescope camera), indicated as (4), is used for aligning the samples onto the COR. The detector system (6) used for measurement contains multiple motorized objectives for changing the field of view automatically, and a pco.edge 5.5 detector. The red dashed arrow represents the X-ray beam direction. (C) Picture of the sample loading tray with 7 pucks, and each puck can hold up to 16 samples mounted on a combination of sample base and sample pins. Please click here to view a larger version of this figure.

Figure 2: Details of the sample mounting scheme and the flexure gripper design. (A) Picture of a 3D-printed plastic dummy sample mounted on a sample base, representing the maximum sample envelope that can be handled by the flexure gripper. The red arrows indicate the position where the gripper holds the sample base. (B) 3D design of the flexure gripper. The fingers of the gripper are actuated to hold or release the sample base. (C) Vertical section drawing of the gripper with dimensions. The maximum opening in the center is 8.9 mm; therefore, the maximum allowable sample size is ⤠8mm. (D) Picture of the top of the tomography stage. An Aluminum dowel (indicated by the blue arrow) is mounted at the top of the two orthogonal stages. A magnetic disc is fixed to the top of the dowel on which the sample base (with the sample) is positioned by the gripper. Please click here to view a larger version of this figure.

Figure 3: Snapshots from the video graph of the COR alignment procedure using the side telescope camera. (A) Picture of the alignment pin just before the alignment routine starts. Blue double-headed cross with central red dot is the target position, which coincides with the COR of the tomography rotation stage. The inset shows the zoomed image of the top of the pin showing the detected sample center, both in height and width. (B) Pin aligned to the target position at 0°. (C) Pin rotated to 90°, and it is off target position. (D) Pin aligned to the target position at 90°. Now the pin is aligned in both orthogonal directions; therefore, the sample will rotate in the center of the camera. Please click here to view a larger version of this figure.

Figure 4: Normalized projection images of an insect collected with a 1.25x and a 4x objective. The insect belonged to the class Insecta, order Coleoptera. This represents two out of 128 tomography scans. The insect was glued onto a paper and attached to the sample pin. Projection images with 1.25x objective are at (A) 0°, (B) 90°, (C) 180°, and with 4x at (D) 0°, (E) 90°, and (F) 180°. The set of 1.25x and 4x tomography scans were collected in a single session without any human intervention. A set of images with 1.25x provides a full view of the sample, and a 4x set of images shows zooming capability. Please click here to view a larger version of this figure.

Figure 5. Comparison of an identical tomographic slice acquired using two different fields of view. A single reconstructed slice from tomography of the projection images displayed in Figure 4 for (A) 1.25x and (B) 4x magnifications. Please click here to view a larger version of this figure.
Table 1: Typical samples.csv file that the user provides containing tomography parameters. This file is read by the tomomatic Python script that is used for data acquisition. The columns A (description of the sample), B (puck ID), C (slot in the puck), E (tomography rotation step), F (number of FI), G (number of DI), H (magnification to be used), and K (slot priority) are filled in by the user. The columns D (exposure time), I (X-ray propagation distance between sample and camera), J (Camera motion across beam to place the COR to the center of the camera), and L (barcode of the sample base) are filled in after the alignment and preliminary optimization. Please click here to download this Table.
Table 2: Typical output log file saved as Output_file.txt after all the samples have been scanned. The file reports all the input parameters, and in addition, it provides the barcode of the sample scanned (column M), path to the scanned metadata and image files (column N), and the position of the motor used for collecting FI (column O). Basically, this output file provides the necessary information for data reconstruction and analysis. Since there was no input provided in column A of the input file, this column is filled with the present count of the scan, along with puck and pin numbers. Please click here to download this Table.
Supplementary File 1: Pseudocode describing the script used to operate the robot as a sample changer. The file outlines the routine for automatic sample mounting, Data Matrix code reading, automatic sample alignment, and execution of a tomography scan. Please click here to download this file.
Supplementary Figure 1: Screenshot of the Generic Data Acquisition GUI. This interface permits adjustment of basic camera parameters, live visualization of the sample, and initiation of tomography acquisitions. Scans may be started using the onāscreen button (manual scanning only) or via the commandāline interface, indicated by the yellow rectangle at the bottom center of the screenshot.Please click here to download this file.
Supplementary Figure 2: Photograph of the SPINE standard Puck (left) and the Puck Cap (right). The pin positions, shown in red, on which sample bases are mounted are numbered starting from the position opposite the notch on the central holding post. The number 7267 (marked in white) is the puck identification number. The Puck Cap can be mounted onto the puck to protect samples during transport or storage. Please ensure that the sample sizes are compatible before attempting to mount the cap.Please click here to download this file.