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°).