In the past days I arranged the optical setup to be able to displace the 1-km spool on the stage without encountering obstacles. I connected the Moku:Go inputs to the error and correction signals closed loop of the UMZI setup. The powers coming from the two arms and recombining in the second 50/50 BS of the UMZI, are 122uW (I tuned the VOA). The calibration of the error signal is 67 mV/rad. The loop was closed as done last time.
1. Stabilization of spool and stage
At first, since while the stage was moving the spool was not stable, I screwed a post into the small platform hosting the spool on the stage and I added some ring spacers to fit the height. The I insert the black piece shown in Fig.1 to fix the spool to the platform. I also fixed the stage to the optical bench with three clamps (see Fig. 2). NB. if the moving platform eccesses the range, the stage is over vibrating and this makes the stage itself displacing, despite the clamps.
2. Chose the speed and acceleration of the moving platform
I tried different options for the speed and accelation. I was checking the error and correction signals on the oscilloscope, both on the analog oscilloscope and the Moku:Go oscilloscope, which I used to acquire time series data.
How to set the controller interface:
Select the single-JOG interface.
X Tar, X Tar Speed, X Tar Acc, X Tar Dec are respectively the target position, speed, acceleration and deceleration. Then one can chose between Abs (absolute), Rel (relative) and Stop. Abs refers to the absolute value for the position and after testing this feature, I realized that there is an hysteresis and then it is better to use the relative option. I move the stage manually to one and and then I understood that to cover almost all the linear range I should indicate +/-60 in the X Tar Pos. The sign + refers to the direction towards the computer, the sign - to the direction towards the wall. To avoid being too violent on the spool and to unlock the system, I set X Tar Speed to 1 (that should correspond to 1mm/s according to the manual) and X Tar Acc/Dec = 5 (see Fig. 3). I measured the distance and the time relative to these settings and I got: 150mm in 60 seconds that corresponds to 2.5mm/s (speed = 1). Then I changed the X Tar Speed to 2 and I got: 150mm in 30 seconds that corresponds to 5mm/s.
3. Measurements of the error and correction signals and polarization changes during the stage motion
I installed two PDA20CS PDs at the outputs of the PBS after the polarization controller that was ON during the measurements. Since the Moku has only two input channels, I monitored the polarization time series only with a traditional oscilloscope. In Fig. 4 are shown: error signal closed loop (yellow), correction signal (blue), signals in output of the PBS after the polarization controller (purple and green) while the stage with on top the spool is moving with the settings already discussed. We can see that the purple signal is changing over time, but then it goes back to its average value. The correction signal has some spikes but overall the system seems locked for the whole measurement time.
4. Check OLTF of the UMZI before and after the measurements with moving stage
I measured the OLTF of the loop injecting a swept sine of 300mV amplitude, both before and after all the measurements with the stage and it did not change as shown in Fig. 5.
5. Power check after the measurements
The powers recombining at the second 50/50 BS are 117uW (reference arm) and 113uW (spool arm). The power decresed but it did not end up to be too different between the two arms.
Next step:
I acquired the time series with the Moku:Go and I will show the spectra while the stage is at rest and when it moves.
NB. the powers in Watt need to be divided by a factor 10 here since there was an attenuation on the powermeter but no ND filter installed during these measurements.The powers recombining at the second BS are of the order of 10 uW and not 100 uW.
Following Ben's advice, I tested the data acquisition using the RP's SCPI code. https://redpitaya.readthedocs.io/en/latest/appsFeatures/examples/acquisition/acqRF-exm2.html
I first started by flashing the SD card with the latest version of the RP software 2.00-30. Then I launched the SCPI server according to this page. I plugged the RP's IN1 to an SR 3.1MHz function generator, which was also connected to a oscilloscope to verify that the RP was acquiring the correct waveform characteristics. I put the generator at a Sine wave, 0.01MHz, 0.1V amplitude (=0.2 Vpp), 0V offset. I verified on the oscilloscope that the signal was indeed this one. I executed the code below in my own jupyterlab (not the RP's). I obatined the attached plot.
Here are the things I don't understand:
1/ I had to add the line rp_s.tx_txt('ACQ:SOUR1:GAIN HV') because otherwise I get a constant 1V signal on the plot. Yet I am using the LV calibration on IN1. Furthermore, when I try to use the built-in oscilloscope of the RP, I also need to set the attenuation to HV, otherwise the LV setting also gives me a constant 1V on the scope trace. Why is that?
2/ I don't understand the plot that I got; the amplitude is way too large for a 0.2Vpp signal. What is going on here?
Code:
import sys
import redpitaya_scpi as scpi
import matplotlib.pyplot as plotIP = 'rp-f09ec9.local'rp_s = scpi.scpi(IP)
rp_s.tx_txt('ACQ:RST')
rp_s.tx_txt('ACQ:DEC:F 1')
rp_s.tx_txt('ACQ:SOUR1:GAIN HV')
rp_s.tx_txt('ACQ:START')
rp_s.tx_txt('ACQ:TRig NOW')
while 1:
rp_s.tx_txt('ACQ:TRig:STAT?')
if rp_s.rx_txt() == 'TD':
break
## ! OS 2.00 or higher only ! ##
while 1:
rp_s.tx_txt('ACQ:TRig:FILL?')
if rp_s.rx_txt() == '1':
break
rp_s.tx_txt('ACQ:SOUR1:DATA?')
buff_string = rp_s.rx_txt()
buff_string = buff_string.strip('{}\n\r').replace(" ", "").split(',')
buff = list(map(float, buff_string))
plot.plot(buff)
plot.ylabel('Voltage')
plot.show()
Here's a how to guide on how to use the PLL
Step 1: switch the hardware ON.
If the temperature setpoints of the lasers are reasonably close, you should see a beatnote on the oscilloscope's PD pickoff.
Step 2: Find the temperature acquisition setpoint.
On the RP (NW25) script, use the lines
set_PID_const(voltage = 0.5)
set_temp_const(voltage =0.003, output = "out2")to find the approximate range in which the PLL can easily acquire lock. To do this, change the value of the voltage in "set_temp_const" (while keeping the value of the PID voltage to 0.5V as it correponds to its mid-range) while looking at the beatnote and the error signal on the oscilloscope. You should aim for a beatnote of 51.5MHz, at which the error signal will go through zero. Once a voltage that ensures that the beatnote is in [35MHz, 75MHz] is found, remember the value of this temperature voltage offset. If the laser temperatures were reasonably close, this value should be in [-0.1V, 0.1V].
Step 3: close the PLL loop
On the RP script, execute the function
PID_response_full(offset_slow=0.05, prop_fast_final = 0.02, integral_fast_final = 40, ramp_up_gains=True) #, swap_gain_signs=True)with the value of the reported temperature voltage as the "offset_slow" parameter. After the function is executed, the error signal should stabilize around zero with fluctuations in the interval [-0.2V,0.2V] (if the temperature of the lab is not stable, the error signal can fluctuate in [-0.5V, 0.5V] or even more). The beatnote should stabilize at a well defined frequency (in pratice the measured frequency on the scope can fluctuate by tens or hundreds of Hz, this is due to the VCO not having a perfectly stable frequency but this should have no effect on the loop noise). The fast correction signal should stabilize around 0.5V and the slow correction signal should vary slowly in time (<1Hz of bandwidth).
If the correction signals clearly diverge, this means that the gains have the wrong sign. This can be corrected using the parameter
swap_gain_signs=Truein "PID_response_full".
Congratulations, the PLL is functional! It should stay locked indefinitely, unless there is some strong temperature/air current change in the lab which could destabilize the interplay between the fast and slow loops and thus unlock the PLL.
Bonus steps: taking transfer functions, noise spectra and optimizing the loop
At this stage, you can take the OLTF using the RP's network analyzer. Below is an example of OLTF that I took today. You can also take a phase noise spectrum by directly connecting the error signal channel to a spectrum analyzer. Below is an example using the Agilent.
To optimize the PLL loop, you can ensure that the PZT resonance at [200kHz, 300kHz] is sufficiently suppressed by the IIR filter (which is a bandstop defined by its center frequency and frequency span). You can also tune the PI gains ramp up to improve the bandwidth of the loop (currently at 30kHz), the gain margin (8dB) and the phase margin (60°).
1/ I implemented a second notch on the IIR at frequency 2.1e5Hz with bandwidth 400kHz. The downside of this is that the second notch is eating phase so I can't push the bandwidth of the loop past 30kHz (by increasing P) without causing an instability at ~60kHz where the gain margin is <10dB. A solution to this should be to decrease the bandwidth of this notch.
2/ I fed the PID's correction to the input of the slow loop and now the PID correction is consistently at half voltage on a timescale of 0.1Hz. This is better than the previous behaviour and seems more reliable for long term operation. So I'll keep it like this.
3/ At around 6pm the PLL beatnote started jumping like yesterday and the PLL lost lock. This kind of poltergeist behaviour could be rationalized by the bad weather + unusually low temperatures outside (1°C) + HVAC possibly starting at that moment => air flows near the lasers, causing them to quickly drift in frequency. It's apparently not coming from air flows on the optical setup of the PLL itself, because when the loop is not engaged, the beatnote is experiencing these fast drifts which means that it is really a problem in laser frequency stabilization.
I was having issues with the IIR module again (warning/error due to invalid poles and zeros) so I'll need to investigate this in the code.
1/ I switched the fast and slow loop on at 12:15 and came back at 14:15, with the loop still on. The temperature loop is able to keep the fast correction voltage in [0.4V, 0.6V] for timescales >2h.
Conclusion: the temperature control of the PLL works (provided that the temperature of the lab stays stable)
However, the noise of the error signal changes by quite a lot over time, without any apparent change to the loop nor to the setup. This is more pronounced at the end of the afternoon, when I could even clearly see the beatnote (free running without any loop closed) quite regularly jumping by >10MHz in a matter of a few seconds. I pin this on the bad weather which could have changed the conditions of the lab in a timescale smaller than the HVAC and thus destabilized the internal temperature loops of the lasers. The solution to this could be to feed the error signal of the fast loop to the slow one.
2/ I added the IIR filter to the PID block. It is a simple notch filter at 240kHz and span 100kHz. See figure where I took a OLTF of the loop, with and without the IIR. The IIR module does work but the notch is too narrow for now. A solution could be to add another notch close to the current one.
Note that the parameters I had to feed to the IIR are:
pole_2 = 1/2*(-f_span_IIR +1j*np.sqrt(np.abs(f_span_IIR**2 - 4*f_center_IIR**2)))
zeros = [1j*f_center_IIR+300]
poles = [pole_2]
I just tested a code to actuate on the temperature of the Diabolo to keep the PLL stable. It seems to work in the time I let it on (30mins, the correction signal stays around mid-range i.e. 0.5V). Next step is to monitor the loop on a longer time scale.
I tried adding the IIR filter to notch out the PZT resonance but it was throwing me the error that two poles cannot have the same value. It could be that the iir only requires one of the two complex conjugates to be sent to it. It should also be useful to test this module on standalone with a spectrum analyzer.
Somehow today's phase noise is lower than yesterday's by about 30%: we have 22mrad between 1kHz and 100kHz.
The problem was solved by deleting the config file of the correposnding RP. Somehow, when wrong values of the zeros/poles of the IIR are given, it retains them and it is impossible ot change them without deleting the config file...
The compact squeezer homodyne has been aligned with a visibility of v = 0.875 The maximum voltage is 2.34 V and the minimum is 0.156 The visibility is calculated as v = (Vmax - Vmin)/(Vmax + Vmin) (see for instance https://en.wikipedia.org/wiki/Interferometric_visibility ) The attached screenshots show the oscilloscope measurements used to calculate the visibility. To measure high levels of squeezing, we will eventually want higher visibility than this, which will come from improving the mode matching between the OPO and the LO beams. For now, 88% visibility should be enough to ensure the compact squeezer is working and diagnose any problems that do exist.
Yesterday I took a TF using the RP's Network analyzer and computed the OLTF. P=0.01 and I=20.
I compared the result to the OLTF model (this is not a fit). See figure. The model explains the measurements between 5 kHz and 50kHz, or up to 1MHz if we only look at the gain. Nevertheless the PZT resonance at 200kHz seems present.
I think that the low frequency behaviour is due to a saturation of the input/output of the RP (capped at +-1V for both input and ouput).
I also tried taking some spectra with the SR785 but because of the delay of the Moglabs (also measured during the PFD TF measurements) it is difficult to get any good fit with the model.
I recovered the PLL with the new RP and took a spectrum.
The parameters which ensured good stability today were: P=0.01, I=20, no input filter.
Below is the phase noise plot. I recover the ~30mrad I had before. Not great, not terrible.
I also took some transfer functions using both the SR785 modulating on the Moglabs PM port, and using the RP's NA module. Analysis will follow tomorrow, although it seems that the piezo resonance at ~200kHz may add noise. So a spectrum using the Agilent will be needed.
I measured the transfer function of the RP's PI block using the SR785, for two sets of PI values.
- Figure 1 shows the transfer function with the following parameters. I need to put an input filter in the RP's PID block in order for the signal not to saturate because of the low frequencies integration. The command is pid1_pll.inputfilter=[-f_HP] where f_HP is the corner frequency of the filter in Hz. It is also important to reset the integrator value to 0 each time so as to discharge the accumulated drift from low frequencies. Maybe this was the problem I encountered on Friday (entry 11572). Parameters: SR785 source at 10mV, P = 2, I = 5000, f_HP = 200.
- Figure 2 shows the transfer function with SR785 source at 200mV, P= 0.09, I= 45, f_HP = 1.
They are both compatible with the theoretical model (with more deviation in the first case).
Conclusion: The RP seems to be working well between 10Hz and 100kHz. To understand if there is phase loss at higher frequencies, I need to switch to the Agilent.
To have access to write-able MEDM: there are two ways to do it, but it requires Yubikey to authenticate.
1. Launch medm from the CDS login portal, but display it on the local machine. It has everything but a bit slow
ssh -X -C albert.einstein@cdsssh.ligo-la.caltech.edu
sitemap
2. Remote desktop. I've installed X2Go for L1 (instructions).
x2goclient # Launch the client
If the remote control freezes every 15 minutes due to screensaving, manually turn it off by
xset s 0 0 &
xset -dpms; xset s off
Command for X2Go:
ssh -C -L localhost:2233:cr10:22 albert.einstein@llocds.ligo-la.caltech.edu
I swapped the fired RP with a new one called NW25.
I tried to measure the TF of its PID block but I quickly get a constant output voltage saturating at +1V even after I switch the PID block off! The only way to reset the output of the RP to zero is to unplug the power supply.
I don't understand what's going on; further investigation is needed.
Below the transfer function of the PFD. The input is the difference in phase between the LO and the RF signal (in deg) and the output is the error signal in Volt. See the screenshot for the exact procedure and conversion factors. See plots attached
We see that above 10kHz, there is a loss in gain (-7dB = -20log(2.4/1.1) between 10kHz and 100kHz) and a pure delay in the phase. To understand if this really comes from the PFD, it is necessary to also measure the TF of the Moglabs's PM modulation.
The measurement of the Moglabs's PM modulation's transfer function is done using the same setup as before, but replacing the PFD with a mixer, the Minicircuits ZLW-2. We assume that the mixer's TF is constant in frequency. See plots attached for the measurement of the PM's TF. This thus explains the behavior of the previous total TF of the Moglabs's PM + PFD.
We see that the PM TF has -7dB between 10kHz and 100kHz as well as a pure delay.
Conclusion: we can model the PFD by a pure gain of 2.4e-2V/deg. This is compatible with its specs of 36deg/V (see spec sheet here in the dcc) as 1/36 = 2.7e-2.
The RP called SHG (used for the PLL) has no led lighting up when powered on. It still slightly heats up, but clearly less than when it was functional. This makes me think that there is a problem in the RP on the PWR path. I am not sure how it died like that.
Here is the bode plot of the frequency response of the PZT driver, using the SR785 with source input of 50mV. It seems to operate as intended and does not explain the peak at 14kHz that was spoiling the phase noise (see entry 11535).
The procedure to measure a frequency response can be found in page 1-11 of the SR785 manual, or in Nutsinee's youtube channel [https://www.youtube.com/watch?v=4cS-ya6siRk]. Note that although, in dual channels mode, the bottom plot is called "B Live", it is still measuring the signals from ports A of both channels in "Frequency response" mode. Also note that you need to "print screen" both plots separately to get the amplitude and phase of the TF.
Note: to switch the frequencies to log scale, push the "Freq" button and select "Type" to be "log".
This can be modelled by an all-pass filter with different gains at high and low frequencies (see attached for the parameter specifications). Below is the comparison between the measured bode plot and the model. This matches very well so the behavior of the PZT driver is well understood.
Lisa, with Eric
Many months ago (old log) I had to remove the SHG from the LASTI squeezer to send it to LLO, since the LLO SHG failed.
To replace the LASTI SHG, I thought we could use the "old" AEI SHG which was sent to us over a decade ago and we have been using it in several experiments since then. I took that AEI SHG (which was in the green lab, thanks to Dorotea for cleaning up the table), and moved it to the LASTI squeezer, in the center of the table, NOT ALIGNED (picture attached).
This AEI SHG looks like the LIGO ones from the outside, but it has different mirrors, and therefore it requires a different mode-matching solution.
With Eric we found yesterday the mode-matching solution that it was used before for the AEI SHG.
I also attach here the pptx of the documentation of the LASTI squeezer.
Looking at some other old log posts, it seems that the efficiency of this SHG may be in decline. Compare the most recent measurement: Pin ~300 mW, Efficiency = 26% 2017 Measurement Against this measurement from when it first returned from LHO: Pin ~300 mW, Efficiency = 48% 2014 Measurement I found our stash of SHG crystals (see attached photo) and we can refresh if needed. Comparing the quantities remaining against the list in the squiki, I suspect that the current crystal is PPKTP: H1 Sqz Crystals Wiki Page
Gabor sliced the 40-km spool and I measured the losses (Fig. 1). I connected the spool to the first BS of the Michelson setup.
Power before the spool : 105.mW
Power after the spool: 11.4mW
It correspond to a 90% of power losses. In dB we have: loss_dB = 10*log10(P_in/P_out) = 9 dB. Considering losses of ~0.2dB/km, after 40km we have 0.2dB/km x 40km = 8dB which is in agreement with what I measured.
This measurement may be limited by SBS. In the future you may wish to lower the injected power level significantly.
I measured the losses again after placing a 99/1 BS before the spool.
Input Power = 2.2mW
Power after the spool (40km) = 0.378mW.
Losses = 83%
Losses [dB] = 10*log10(2.2/0.378) = 7.65dB