Study of an instrument for sensing errors in a telescope wavefront