High resolution LCoS microdisplays can be used as dynamic diffraction gratings for the modulation of coherent light. They allow the projection of arbitrary intensity patterns on measurements objects with the advantage to sample lots of measurement spots within one frame. Moreover they can adapt to high ambient lighting conditions by diffracting the complete laser power on a variable number of spots. For error-free laser pattern detection a method for the design of unambiguous projection patterns is presented.