X-ray imaging is an integral element of medical diagnostics. In order to achieve even more detailed images, researchers are working on further developments, such as X-ray phase contrasting, in which the deflection of rays in the body is used in imaging. This requires X-ray optical microstructures, or X-ray grids for short, which can so far only be manufactured on small surfaces. In order to incorporate larger surfaces, e.g. for images of the upper body, several grids are therefore combined. The micro-structured substrates need to be precisely aligned to one another in order to avoid image errors. Commercialised adjusting systems such as the autocollimator can only determine the rotation of an object in relation to the adjusting system, but not that of two or more plates in relation to one another. Neither can all degrees of rotational freedom be measured. This is exactly the point that the scientists of the Institute of Microstructure Technology (IMT) have set out from. They have developed a simple and fast method for the alignment of several of these X-ray grids. The optical system to determine angles consists of a laser light source, a camera sensor, a lens as well as a beam splitter and a mirror. The laser ray is separated into two ray channels with a beam splitter and guided onto the surface of two different X-ray grids via a mirror. The reflected rays are then combined by the same beam splitter and focused on a camera sensor with a lens. Here, the mirror and the beam splitter need to be aligned in parallel. Diffraction of the laser rays on the grid surfaces creates a specific diffraction pattern on the camera sensor. The evaluation of this pattern can yield information regarding all three rotatory degrees of freedom. The distance between the beam splitter and the mirror is flexible, allowing measuring of grids that are not immediately next to one another, which prevents errors in measurement accumulating as grids are arranged in series.