Instrument for measuring a diffraction pattern of a specimen