LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Gerchberg-Saxton Algorithm

Hi there,

 

I've made a .vi file to create an output that will be used in an SLM, the .vi file uses the Gerchberg-Saxton algorithm for refining the phase. However, when running the file it seems to flucuate between two different phase states. I've had my instructor have a look at it and he can't understand why it is doing this either. I was wondering if someone could have a look at it and point me in the right direction of a correct solution.

 

I've attached the .vi file.

 

Thanks 🙂

0 Kudos
Message 1 of 3
(3,533 Views)

Should the FFT functions at the bottom of the VI be Inverse FFTs?  If I change them, it seems to not fluctutate - though I know nothing about the algorithm so don't know if it's giving the expected solution.

 

Also, you should be able to replace the 2 1D FFTs with a single 2D FFT - and the same for the Inverse.

0 Kudos
Message 2 of 3
(3,506 Views)

I'll try that, I had to make it compatible with the LabView at uni which is unfortunately V7.1.

0 Kudos
Message 3 of 3
(3,501 Views)