slmPy icon indicating copy to clipboard operation
slmPy copied to clipboard

Trouble Controlling the Spatial Light Modulator with a Raspberry Pi

Open JamesTimothyMeech opened this issue 4 years ago • 1 comments

Hello

Thanks for this great code. I have used it on my desktop PC with great success.

Now I am trying to use it with a Raspberry Pi and I have encountered and issue where calling:

wx.Display(1).getGeometry() returns (2560, 200, 1024, 768) and I can see the pattern on the monitor I have connected to the Pi but not the second display (SLM).

This happens regardless of whether or not I set monitor = 0 or monitor = 1.

Do you have any idea how to fix this?

JamesTimothyMeech avatar Nov 23 '21 13:11 JamesTimothyMeech

Hi,

I try to understand, you have two displays connected to the Pi (one monitor and one SLM) and it displays the image on the wrong one (the monitor)?

Now I am trying to use it with a Raspberry Pi and I have encountered and issue where calling: wx.Display(1).getGeometry()

Why do you call this? You shold initialize the SLM with slm = slmpy.SLMdisplay(monitor = 0) or slm = slmpy.SLMdisplay(monitor = 1) depending on if the SLM is labeled monitor 0 or 1 in your operating system. What does it do?

wavefrontshaping avatar Dec 02 '21 12:12 wavefrontshaping