marceluda / rp_lock-in_pid_h

Lock-in and PID application for RedPitaya enviroment (only with harmonic modulation)
GNU General Public License v3.0
7 stars 8 forks source link

Phase in oscillator #4

Closed Gacosta2 closed 2 years ago

Gacosta2 commented 2 years ago

Hello my group is trying to use this as a standalone laser controller with the Lock-in and PID. Could you point me in the direction of the code that creates the reference signals? I would like to have the X and Y values become phase-dependant.

marceluda commented 2 years ago

Hello Gacosta.

The easiest way to do that is to use cos_1f signal for modulation. The, X and Y will demodulate using cos_ref and sin_ref , which hace a phase relation with cos_1f.

Are you using the "Lock-in+PID" App ( https://marceluda.github.io/rp_lock-in_pid/ ) or "Harmonic Lock-in+PID" App ?

If you really want to get to the code you have to look at the lock-in module ( https://github.com/marceluda/rp_lock-in_pid/blob/master/lock_in%2Bpid/fpga/rtl/lock.v ) and the function generator module ( https://github.com/marceluda/rp_lock-in_pid/blob/master/lock_in%2Bpid/fpga/rtl/lock/gen_mod2.v ). Or in the most recent App, https://github.com/marceluda/rp_lock-in_pid_h/blob/master/lock_in%2Bpid_harmonic/fpga/rtl/lock.v | https://github.com/marceluda/rp_lock-in_pid_h/blob/master/lock_in%2Bpid_harmonic/fpga/rtl/lock/gen_mod_h.v

I hope this helps.

This App is based in an old version of Scope App ... and the development tools you should have to implement it are described here: https://github.com/RedPitaya/RedPitaya/tree/release-v0.95

El mié, 1 dic 2021 a las 13:15, Gacosta2 @.***>) escribió:

Hello my group is trying to use this as a standalone laser controller with the Lock-in and PID. Could you point me in the direction of the code that creates the reference signals? I would like to have the X and Y values become phase-dependant.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/marceluda/rp_lock-in_pid_h/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACALCQFECLH4A4UBWRI3WBLUOZC33ANCNFSM5JE4HJIQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Gacosta2 commented 2 years ago

Yes, I am using the Harmonic Lock-in application. I attempted to use the F1o signal as the error signal, as that is what I saw in your paper had a phase dependence, however the actual signal did not give any kind of derivative signal from the SAS peaks that were put into the Pitaya.

I'll look into the code thanks for the tips, much appreciated.