An electronic system employing an LCD with polarizers and a shutter is used to generate binary patterns of light. The patterns are recorded in a photosensitivite material, each for a particular time, by incoherent light. The patterns and the times are chosen of the kind that the resultant distribution of the exposure dose correspond to a required phase relief. The system can be reconfigured to one for inspection of recorded elements from Fraunhofer diffraction due to them, with the SLM used for aperturing.