Member
Joined:
Posts: 1

I am using a SLM to do some imaging research right now and for me there are still several requirements for SLM control that are waiting to solve .
1 I hope to circularly display several images on SLM. Is it possible to set the circular frame number and frequency with Matlab?
2 When the images are refreshing on SLM, I need a
sync signal from SLM(or controlling program )to trigger other hardware. How to achieve this function with Matlab?
3 Is it possible to control SLM with Labview? Because I think Labview is more suitable to control other hardware in my system

Administrator
Joined:
Posts: 73

Hi Wiki,

Let me be sure I understand your questions;

1/ You want to send N images circularly, meaning you want to send 1,2,3...N,1,2,3..,N,1,2,3etc... with a given - accurate I guess - frame rate.

To easily send any sequence of images on the SLM, you can find the pieces of information in the tutorial section: "How to control a SLM with matlab using Psychtoolbox".

However, if you need a precise frame rate, this tutorial would not be enough. A first solution would be to use Psychtoolbox to create a movie with your images you want to send and then play this movie in an infinite loop with a given framerate. You will find more information here:

- docs.psychtoolbox.org/CreateMovie
- docs.psychtoolbox.org/OpenMovie

I am not an expert of this toolbox, look in the help and in the forum, there may be other solutions.

Another thing important to know, when dealing with matlab for synchronization issues or time measurement, is that there is many way to measure the time, but even if the number returned is given with a fine precision, the actual accuracy is usually very low. To get an accurate value of the time, I recently find this link:

- www.mathworks.com/matlabcentral/fileexch...indows/content/hat.m
(you need to compile the .c file typing mex hat.c - of course you need a compiler for matlab)

2/ I guess I need more information on the hardware and the way to communicate with this hardware. Sometimes, you can send a TTL pulse either using a port of your computer (RS232, USB...) or a specific hardware. Again, that depends on your device.

However, the sync signal you would send with Matlab would not be that accurate compared to a hardware synchronization since you have the latency of the computational time. The best way is to have a hardware output trigger on the SLM itself you can use. You can ask the manufacturer of your SLM if it is possible to add an output trigger signal. I did that once with a Holoeye device, and the company nicely accepted to add the output trigger for a reasonable price.

3/ I do not use Labview, I am not the best one to help you with that. Maybe someone else in the forum know a direct and clean way to control the SLM with Labview. One thing possible (probably not optimal) is to use a Matlab code inside Labview. So you may use the same thing as in the tutorial in a Matlab code in your Labview programm (see Labview help for more details).

Member
Joined:
Posts: 12

Hi
Is it possible to do amplitude modulation in phase only SLM?

Sanjeev

Administrator
Joined:
Posts: 73

Hi Sanjeev,

Yes, liquid crystal SLM are originally designed for amplitude modulation. If it is a twisted nematic SLM, put a polarizer and an analyxer in a cross polarization configuration before and after the SLM. If it is a linarly arranged SLM, simply excite the SLM at 45 degrees compared to the phase modulation axis and put an analyzer at -45 degres after the SLM.

Again, amplitude modulation is the initial function of the SLMs, you should a lot of information about it online and in the the literature.

Best,

Sebastien

Member
Joined:
Posts: 12

Thanks Sebastin.

I get it now. But will it be suitable to do both amplitude and phase modulation using the same setup ?
Sanjeev

Member
Joined:
Posts: 1

Can someone show me the vellekoop's stepwise sequential algorithm code? I'm try to repeat this process, but i'm failed, I don't know how to describe the scattering medium with code and how to come true the iteration.

Member
Joined:
Posts: 1

Hi...SLM is at last what you need, principally since, in such a case that you have more than one apparatus underway, SLMs can be arrangement with a Peer bunch, which is something you'll have to never really uphold as far as possible across machines.

I dont realize how to control sending messages for the wide range of various solicitations that surpass the cutoff.

Not certain I accumulate. For what reason wouldn't you be able to achieve a similar way?

order pcb