Wavefront shaping techniques in complex media

[tutorial] Easy generation of Laguerre Gauss beam with Python and an SLM

I want to share a simple Python writen by José Salazar-Serrano. This program aims to generate a Laguerre Gauss beam with a phase only spatial light modulator (SLM). It uses the slmPy and requires the wxPython and opencv modules to run. The full description of the package and the files are available on the Github repository.

The program is presented in two files, generate_Laguerre_Gauss_SLM.py, that is used to generate a LG mask and display it on the SLM, and generate_Laguerre_Gauss_split_SLM.py that allows to generate two independant LG beams on different regions of the SLM.

The function can be called in the shell using the syntax:

python generate_Laguerre_Gauss_SLM.py [options]

The options are fully explained in the readme file of the Github repository.They allow to tune the charge of the LG beam, the beam radius, add a grating, add a correction mask (provided by the SLM manufacturer) or save the phase mask as a bitmap image.

Submit to FacebookSubmit to Google BookmarksSubmit to TwitterSubmit to LinkedIn


#2 Sébastien Popoff 2016-11-26 10:48
That is entirely up to you. Usually, you want to illuminate your modulator with a plane wave and inject light into your optical setup, but the rest depends on your system and what you want to do.
#1 Wei 2016-11-23 22:38
What is the experimental set-up for this particular code?

Additional information