The acquisition and processing of measurement data by a combined magnetic resonance and X-ray device are provided. Several X-ray images are acquired in succession by a X-ray acquisition unit, and the X-ray images are processed to determine movement data describing a movement of a test subject or at least one region of the test subject during a given time interval. Several data points representing a magnetic resonance signal strength for different phase encodings are acquired by a magnetic resonance acquisition unit during the time interval or an equivalent further time interval, in which the same movement pattern of the test subject or the region is expected. The data points are processed to generate a real space image as a function of the movement data, and/or an acquisition parameter used for the acquisition of at least one of the data points is adjusted as a function of the movement data.