wavefrontshaping / slmPy

A simple Python module based on wxPython to interact with spatial light modulators handled as secondary monitors.
Other
63 stars 26 forks source link

Trouble Controlling the Spatial Light Modulator with a Raspberry Pi #7

Open JamesTimothyMeech opened 2 years ago

JamesTimothyMeech commented 2 years ago

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?

wavefrontshaping commented 2 years ago

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?