40m QIL Cryo_Lab CTN SUS_Lab TCS_Lab OMC_Lab CRIME_Lab FEA ENG_Labs OptContFac Mariner WBEEShop
  PSL  Not logged in ELOG logo
Entry  Mon Jun 4 22:38:44 2012, tara, DailyProgress, BEAT, low frequency beat with 32kHz ADC beat_2012_06_04_b.pngdemod.png
    Reply  Tue Jun 5 23:30:47 2012, rana, DailyProgress, BEAT, low frequency beat with 32kHz ADC 
       Reply  Tue Jun 19 00:08:19 2012, tara, DailyProgress, BEAT, low frequency beat with 32kHz ADC 
          Reply  Wed Jun 20 16:06:50 2012, tara, DailyProgress, BEAT, low frequency beat with 32kHz ADC 
             Reply  Wed Jun 20 17:50:59 2012, rana, DailyProgress, BEAT, low frequency beat with 32kHz ADC 
                Reply  Thu Jun 21 16:04:39 2012, tara, DailyProgress, BEAT, low frequency beat with 32kHz ADC demod_2012_06_21.mat
                   Reply  Fri Aug 10 19:50:37 2012, tara, DailyProgress, BEAT, code schmidtt trigger for beat  schmidtt.pngzoom.pngschmidtt.zip
                      Reply  Thu Aug 30 02:52:01 2012, tara, DailyProgress, BEAT, code schmidtt trigger for beat  IQ_2012_08_20.png
                         Reply  Fri Aug 31 00:48:00 2012, tara, DailyProgress, BEAT, code schmidtt trigger for beat  compare_IQ_schmidtt.pngcompare_IQ_schmidtt.figIQ_compare.pngIQ_compare.figvco-frequency-noise_2010-03-12.png
                            Reply  Mon Sep 3 01:02:46 2012, tara, DailyProgress, BEAT, code schmidtt trigger for beat  IQ_compare.pngIQ_compare.fig
Message ID: 1039     Entry time: Fri Aug 10 19:50:37 2012     In reply to: 994     Reply to this: 1041
Author: tara 
Type: DailyProgress 
Category: BEAT 
Subject: code schmidtt trigger for beat  

I used Schmidtt trigger process to track frequency of beat measurement. This is a first step for digital PLL.

==Intro==:

      we are trying to do offline PLL digitally, so we can avoid extra frequency noise from the LO used in PLL. The first step is to track down frequency of the beat measured by the PD.

==the code==:

       I use Schmidtt trigger algorithm to covert analog signal to digital (the plot below show (-1,1) instead of (0,1) for easier comparison with the analog signal). The data below is taken from beat measurement  with +/- 5000 count. The level is set to +/- 0.2 from amplitude of +/-1. Then I record how long the digital signal stay at 1, or 0 before the signal flip, then use that time to calculate the frequency of half cycle and plot it in the below figure.

 

schmidtt.png

Plot: Above, measured signal from daq (blue) and digitized signal via Schmidtt trigger (Green). Below, frequency of beat as obtained by the calculation from the digitized signal. Note the different time span between the two plots.

      

 ==next==

     I have not FFT the frequency drift in time series yet because I just realize that the way I collect the frequency drift vs time might be a problem. The time step for frequency drift would be varied from point to point depending on the current drift frequency. For example,sat at 1Hz, the signal crosses zero twice per second, and twenty times per second at 10Hz. This means the data density (point per time) between the two frequencies are different, see the below zoomed picture. And it might cause a problem when I do FFT with varied dt size.   To fix this, I 'll try to assign constant frequency to fill in the space. Once the problem is fixed, I can just FFT the signal. I'll think about using PLL code as well and compare the two methods.

 zoom.png

plot2: zoom in of the first figure.

Quote:

Quote:

 This is overdoing it. Please just post the existing beat data somewhere and I can show you how to do it easily with a few lines of matlab code. Then you can go back to your usual noise hunting.

 Here is the demodulated beat signal, with 32kHz sampling rate, 120 second time strecth. I used SR560 to amplify the demod signal so that pk-pk value is ~10 000 counts. The data is store in demod.data with a signal column .

 

Attachment 3: schmidtt.zip  17.008 MB  Uploaded Fri Aug 10 21:13:06 2012
ELOG V3.1.3-