In recent lab course we examined diffraction of light. We used a laser with $\lambda=510$nm. The light passed the diffraction grating then was mapped by a lens (distance grating- lens=$2f$) onto the intermediate image plane where we adjusted an aperture. Then the light passed another lens (distance aperture- lens=$2f$) with same focal length and the diffraction pattern was recorded by a CCD camera.
So far so easy.
My problem is that the diffraction pattern wasn't captured in the focal plane, i.e. at distance $f$ from the second lens but at a distance of almost $1.5f$. I shall explicitly explain why this happend but I have no idea.
We moved the camera along the optical axis but only got a sharp pattern for the mentioned distance, so I thought of the resolution, meaning that I calculated the distance where beams of a certain diffraction order would cover a certain amount of pixels but came to no result consistent with what we measured.
Does anyone have an idea?\
Edit: What I meantioned as grating was in fact an element consisting of several gratings with different spacings aligned in a row. So the aperture was used just to select anticipated areas, i.e. a certain grating.