{"id":25795,"date":"2025-09-24T16:16:05","date_gmt":"2025-09-24T16:16:05","guid":{"rendered":"https:\/\/liquidinstruments.com\/?p=25795"},"modified":"2025-10-15T03:35:54","modified_gmt":"2025-10-15T03:35:54","slug":"optimizing-a-phase-locked-loop-via-transfer-function-analysis","status":"publish","type":"post","link":"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/","title":{"rendered":"Optimizing a phase-locked loop via open-loop transfer function analysis","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-introduction\">Introduction<\/h2>\n\n\n\n<p>As discussed in the previous <a href=\"https:\/\/liquidinstruments.com\/frequency-domain-control-the-ultimate-guide-to-control-loops\/\" target=\"_blank\" rel=\"noreferrer noopener\">control theory application note<\/a> series, frequency domain analysis plays a critical role in designing and evaluating feedback systems, particularly in assessing their stability and overall noise rejection performance. While earlier notes focused on theoretical principles in the Laplace domain, this application note shifts to the practical implementation of those concepts using a real-world example involving <a href=\"https:\/\/liquidinstruments.com\/products\/hardware-platforms\/mokupro\/\" target=\"_blank\" rel=\"noreferrer noopener\">Moku:Pro<\/a> and a voltage-controlled oscillator (VCO), which is an electronic oscillator whose output frequency varies in response to an applied control voltage, allowing precise frequency tuning and modulation for applications such as signal generation and communication systems.<\/p>\n\n\n\n<p>A <a href=\"https:\/\/liquidinstruments.com\/white-papers\/mokupro-implementing-a-phase-locked-loop\/\" target=\"_blank\" rel=\"noreferrer noopener\">phase-locked loop (PLL)<\/a> is a feedback system that aligns the phase and frequency of an output signal with a reference input. It does so by continuously adjusting the VCO output frequency based on the phase difference between the reference and the feedback signal, as detected by a phase detector. PLLs are widely used in communication systems, signal synthesis, and clock recovery due to their ability to produce stable, low-jitter signals and accurately track varying reference frequencies. They also form the core of the Moku Phasemeter, which is known for high precision phase and frequency measurements without dead time or phase wraps.<\/p>\n\n\n\n<p>This application note describes the construction of a phase locked loop (PLL) using the Moku <a href=\"https:\/\/liquidinstruments.com\/products\/integrated-instruments\/lock-in-amplifier\/\" target=\"_blank\" rel=\"noreferrer noopener\">Lock-in Amplifier<\/a>, along with the measurement and optimization of its open-loop transfer function (OLTF). The process begins with an initial controller configuration determined through empirical tuning. The OLTF is first modeled and then validated with experimental measurements to assess key stability metrics, including phase- and gain- margin. These results inform an optimization process aimed at increasing low-frequency gain while preserving sufficient stability margins. Finally, frequency noise measurements from both the initial and optimized controllers are compared to evaluate the improvement in feedback loop performance.<\/p>\n\n\n<div data-component=\"form_button\" class=\"flex flex-col\">\n  <sl-button class=\"button relative gap-2 items-center blue filled medium  self-center  open-dialog open-69a16b6d210bc\">\n    Download application note\n  <\/sl-button>\n  <sl-dialog id=\"dialog-69a16b6d210bc\" label=\"Download application note\" class=\"dialog-overview\" style=\"--width: 600px;\">\n    <div data-hubspot-form=\"true\" class=\"hubspot-form hs-form-html\" data-form-id=\"0aca368f-9fbb-45b3-a7b0-cc06ed26c5ff\" data-form-id-zh=\"\" data-form-id-ja=\"\" data-form-id-ko=\"\" data-portal-id=\"3954510\" data-region=\"na1\"><\/div>\n  <\/sl-dialog>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-experimental-setup\">Experimental Setup<\/h2>\n\n\n\n<p>Stabilizing a VCO requires a frequency reference, typically provided by a highly accurate source such as a rubidium-disciplined clock. In this experiment, the reference is supplied by the Moku Pro\u2019s high-precision internal waveform generator, which functions as the local oscillator within the Lock-in Amplifier module.<\/p>\n\n\n\n<p>Moku platforms offer two primary methods for extracting the phase difference\u2014also referred to as the error signal\u2014used in the feedback control of the VCO. The first method employs the Phasemeter to directly track the frequency and phase of the VCO output. The second method, employed in this application, utilizes the Lock-in Amplifier to demodulate the VCO signal with the local oscillator to produce the error signal. This approach is chosen for its structural simplicity and the convenience of the integrated proportional\u2013integral\u2013derivative (PID) controller, which generates the VCO control signal directly from the demodulated output. <\/p>\n\n\n\n<p>The block diagram of the PLL based on the Lock-in Amplifier is shown in Figure 1. It includes a reference sine wave generator \\(f_{ref}\\)&nbsp;(the local oscillator), a mixer for demodulation, a lowpass filter that removes the frequency sum component and produces the error signal \\(e(t)\\) , and a controller that generates the feedback control signal \\(c(t)\\)&nbsp;applied to the VCO\u2019s tuning port to maintain frequency stability. Additionally, a DC offset is supplied to power the VCO.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"548\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/lockin_pll-1024x548.png\" alt=\"\" class=\"wp-image-25799\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/lockin_pll-1024x548.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/lockin_pll-300x160.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/lockin_pll-768x411.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/lockin_pll-600x321.png 600w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/lockin_pll.png 1051w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 1: Block diagram of the phase-locked loop (PLL) implemented using the Lock-in Amplifier.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-phase-detector\">Phase detector<\/h3>\n\n\n\n<p>For clarity and simplicity, this application note focuses on analyzing the system under locked condition. Under this condition, the error signal \\(e(t)\\), as depicted in Figure 1, represents the residual phase difference between the reference signal and the VCO output. This phase difference arises from the time-integrated frequency deviation between the two signals. By maintaining the phase error at or near zero, the system ensures that the VCO output frequency remains locked to the reference. The error signal \\(e(t)\\) is mathematically expressed as:<\/p>\n\n\n\n<p class=\"has-text-align-center\">\\(e(t) = A \\sin{\\left( \\int f_{VCO}(t)dt \\right)} \\times \\sin{ \\left( \\int f_{ref}dt \\right) } = \\frac{A}{2} \\cos{\\left( \\int \\left[f_{ref} &#8211; f_{VCO}(t) \\right] dt \\right)} + \\frac{A}{2} \\cos{\\left( \\int \\left[f_{ref} + f_{VCO}(t) \\right] dt \\right)}\\).<\/p>\n\n\n\n<p>The VCO nominal frequency in this setup is 62 MHz, while the lowpass filter has a cutoff frequency of 12.3 MHz, as will be shown in later sections. As a result, the additive frequency component is filtered out by the lowpass filter, leaving only the subtractive frequency component. Therefore, the error signal can be expressed as follows:<\/p>\n\n\n\n<p class=\"has-text-align-center\">\\(e(t) = \\frac{A}{2} \\cos{\\left( \\int \\left[f_{ref} &#8211; f_{VCO}(t) \\right] dt \\right)} = \\frac{A}{2} \\sin{\\left( \\int \\left[f_{ref} &#8211; f_{VCO}(t) \\right] dt + 90^{\\Large\\circ} \\right)}\\) <\/p>\n\n\n\n<p>In the locked state, where \\(\\phi(t) \\approx -90^{\\Large\\circ}\\), the error signal \\(e(t)\\) fluctuates only slightly around zero, primarily due to residual noise. Using Taylor\u2019s expansion, a sine waveform can be expressed as<\/p>\n\n\n\n<p class=\"has-text-align-center\">\\(\\sin{x} = x-\\frac{x^3}{3!} + \\frac{x^5}{5!}-\\frac{x^7}{7!} + &#8230;\\)<\/p>\n\n\n\n<p>When \\(x\\) oscillates only slightly around zero in the locked state, the sine waveform exhibits good linearity at this point because higher-order components are negligible. This allows the approximation \\(sin{x} \\approx x\\). Therefore, the amplitude of \\(e(t)\\) provides a direct indication of the phase error, albeit with a constant 90\u00b0 phase offset present between the local oscillator and the VCO output.<\/p>\n\n\n\n<p>Furthermore, the gain of the phase detector is amplitude-dependent and varies with the magnitude of the VCO signal. This dependence must be considered when evaluating the performance of the control system. As a result, the error signal can be approximated by the expression:<\/p>\n\n\n\n<p class=\"has-text-align-center\">\\(e(t) \\approx \\frac{A}{2} \\times \\left( \\phi(t) + 90^{\\Large\\circ} \\right) \\)<\/p>\n\n\n\n<p>Where \\(A\\)&nbsp;represents the amplitude of the VCO signal and \\(\\phi(t) \\)&nbsp;denotes the instantaneous phase deviation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-lock-in-amplifier-configuration\">Lock-in Amplifier configuration <\/h3>\n\n\n\n<p>Following the PLL block diagram shown in Figure 1, the Lock-in Amplifier configuration is illustrated in Figure 2. The VCO output signal is fed into <strong>InA<\/strong>, while the local oscillator is set to the nominal VCO frequency of 62 MHz. The lowpass filter cutoff frequency is set to its maximum value of 12.3 MHz. This setting effectively suppresses the frequency sum component and maximizes the control bandwidth by reducing phase delay introduced by the filter within the feedback loop. The control signal for tuning the VCO frequency is output through <strong>OutA<\/strong>, and <strong>OutB<\/strong> provides a steady 300 mV DC voltage to power the VCO.<\/p>\n\n\n\n<p>Notably, the error signal \\(e(t)\\) is assigned to the <strong>X<\/strong> channel, which uses the in-phase component as the error signal. Because of this, the locked VCO output exhibits a 90\u00b0 phase difference relative to the local oscillator. This phase offset could be removed by routing the error signal to the <strong>Y <\/strong>channel, which uses the quadrature component instead. However, for the purposes of this application note, the phase offset is acceptable, so the PLL continues to use the <strong>X<\/strong> channel output as the error signal.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"970\" height=\"391\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-23-at-4.00.45-PM.png\" alt=\"\" class=\"wp-image-25825\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-23-at-4.00.45-PM.png 970w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-23-at-4.00.45-PM-300x121.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-23-at-4.00.45-PM-768x310.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-23-at-4.00.45-PM-600x242.png 600w\" sizes=\"(max-width: 970px) 100vw, 970px\" \/><figcaption class=\"wp-element-caption\">Figure 2: Lock-in Amplifier configuration used for implementing the PLL.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-initial-lock-using-a-pi-controller\">Initial lock using a PI controller<\/h2>\n\n\n\n<p>The experimental Multi-Instrument Mode setup is shown in Figure 3. Here, the Phasemeter assigned to Slot 4 continuously monitors the VCO frequency. This measurement provides an accurate estimate of the VCO\u2019s initial frequency, allowing the local oscillator frequency in the Lock-in Amplifier to be set appropriately. This method is commonly referred to as assisted frequency acquisition. As an alternative, the Moku Spectrum Analyzer may also be used to identify the VCO output frequency by locating its spectral peak.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"849\" height=\"388\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/multi-instrument-mode-initial-setup.png\" alt=\"\" class=\"wp-image-25819\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/multi-instrument-mode-initial-setup.png 849w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/multi-instrument-mode-initial-setup-300x137.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/multi-instrument-mode-initial-setup-768x351.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/multi-instrument-mode-initial-setup-600x274.png 600w\" sizes=\"(max-width: 849px) 100vw, 849px\" \/><figcaption class=\"wp-element-caption\">Figure 3: Multi-Instrument Mode configuration for VCO stabilization. Input 1 reads the VCO output, Output 1 connects to the VCO tuning port, and Output 2 supplies power to the VCO. The Lock-in Amplifier functions as the feedback controller, while the Phasemeter monitors the VCO frequency.<\/figcaption><\/figure>\n\n\n\n<p>The free-running VCO frequency is measured using the <a href=\"https:\/\/liquidinstruments.com\/products\/integrated-instruments\/phasemeter\/\" target=\"_blank\" rel=\"noreferrer noopener\">Phasemeter<\/a>, with the frequency setting in Auto mode. The automatically acquired initial frequency is 62.7654 MHz. The internal reference frequency of the Lock-in Amplifier is adjusted to match the initial frequency of the VCO to facilitate reliable initial locking. Based on this measurement, the local oscillator is set to 62.765 MHz, as shown in Figure 5.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"989\" height=\"634\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/phasemeter-initial-frequency-acquisition.png\" alt=\"\" class=\"wp-image-25821\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/phasemeter-initial-frequency-acquisition.png 989w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/phasemeter-initial-frequency-acquisition-300x192.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/phasemeter-initial-frequency-acquisition-768x492.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/phasemeter-initial-frequency-acquisition-600x385.png 600w\" sizes=\"(max-width: 989px) 100vw, 989px\" \/><figcaption class=\"wp-element-caption\">Figure 4: The Phasemeter tracks and measures the VCO frequency with the initial frequency setting configured to &#8216;Auto&#8217;, allowing it to automatically detect the VCO\u2019s frequency. The VCO\u2019s initial frequency is observed to fluctuate around 62.765 MHz, with noticeable frequency drift over time.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"963\" height=\"392\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/lock-in-setup-PI-1.png\" alt=\"\" class=\"wp-image-25827\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/lock-in-setup-PI-1.png 963w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/lock-in-setup-PI-1-300x122.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/lock-in-setup-PI-1-768x313.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/lock-in-setup-PI-1-600x244.png 600w\" sizes=\"(max-width: 963px) 100vw, 963px\" \/><figcaption class=\"wp-element-caption\">Figure 5: The local oscillator of the Lock-in Amplifier is set to a reference clock frequency of 62.765 MHz to match the initial frequency of the VCO.<\/figcaption><\/figure>\n\n\n\n<p>For initial locking, a proportional\u2013integral (PI) controller is configured using a rough estimate and empirical experience to enable the feedback loop to function. At this stage, the PI controller is not optimized, especially considering that the loop contains two pure integrators: one from the PI controller itself and the other from the VCO\u2019s frequency-to-phase relationship. This configuration introduces a cumulative 180-degree phase shift within the loop, which can predispose the system to closed-loop instability.<\/p>\n\n\n\n<p>The PI controller parameters are displayed in Figure 6. The proportional gain is set to \u201310 dB, and the integrator crossover frequency is configured at 100 Hz. As a result, the controller operates with limited bandwidth. It responds slowly to phase deviations and provides only modest open-loop gain, offering limited suppression of VCO frequency noise.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"859\" height=\"627\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI-setup.png\" alt=\"\" class=\"wp-image-25828\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI-setup.png 859w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI-setup-300x219.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI-setup-768x561.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI-setup-600x438.png 600w\" sizes=\"(max-width: 859px) 100vw, 859px\" \/><figcaption class=\"wp-element-caption\">Figure 6: Proportional-integral (PI) controller configuration for VCO stabilization with -10 dB proportional gain and 100 Hz integrator crossover frequency.<\/figcaption><\/figure>\n\n\n\n<p>After engaging the PI controller, the measured frequency from the Phasemeter is shown in Figure 7. Before locking, the signal exhibits a constant frequency offset and large frequency variations. Once the PI controller is active, the frequency locks to 62.765 MHz, with fluctuations negligible at the chosen vertical scale. This demonstrates the effectiveness of the closed-loop feedback stabilization.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"990\" height=\"640\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/phasemeter-lock-transition.png\" alt=\"\" class=\"wp-image-25829\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/phasemeter-lock-transition.png 990w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/phasemeter-lock-transition-300x194.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/phasemeter-lock-transition-768x496.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/phasemeter-lock-transition-600x388.png 600w\" sizes=\"(max-width: 990px) 100vw, 990px\" \/><figcaption class=\"wp-element-caption\">Figure 7: The trace of the measured VCO frequency shows large variations and a frequency offset before the PI controller is engaged. After the PI controller is activated, the VCO frequency stabilizes at 62.765 MHz, appearing as a steady, straight line.<\/figcaption><\/figure>\n\n\n\n<p>The remaining frequency noise of the VCO is measured using the Phasemeter, which continuously logs the frequency data as shown in Figure 8. The VCO locked with the PI controller shows reduced frequency variations in the time domain compared to the free-running VCO. The peak-to-peak frequency noise decreases from \u00b1 800 Hz in the free-running case to \u00b1 100 Hz after locking.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"745\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_time_series-1024x745.png\" alt=\"\" class=\"wp-image-25831\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_time_series-1024x745.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_time_series-300x218.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_time_series-768x559.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_time_series-1536x1117.png 1536w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_time_series-2048x1490.png 2048w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_time_series-600x436.png 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 8: The measured frequency variations recorded with the Phasemeter are shown. The free-running VCO exhibits peak-to-peak frequency variations of approximately \u00b1 800 Hz, which is reduced to about \u00b1 100 Hz after locking. DC removal was applied to both traces by subtracting their respective average frequencies.<\/figcaption><\/figure>\n\n\n\n<p>Figure 9 presents the amplitude spectral density (ASD) of the frequency noise for both the free-running and PI-locked VCO. In the free-running case, small spectral tones are observed at 20 Hz and its harmonics, likely originating from subharmonic interference related to the power grid.<\/p>\n\n\n\n<p>A distinct noise peak appears near a 4 kHz offset frequency in the PI-locked ASD. Ideally, the control loop should suppress phase and frequency noise across the bandwidth without introducing additional noise components.<\/p>\n\n\n\n<p>The presence of this peak suggests that the phase margin of the loop may be insufficient. When the phase margin is too small, the loop gain and phase response can produce a resonant behavior near the unity-gain crossover frequency, amplifying noise instead of attenuating it. This effect, known as noise peaking, indicates that the loop dynamics may need adjustment. The issue is examined further in the OLTF analysis in the next section, and a similar topic is also discussed elsewhere in this <a href=\"https:\/\/liquidinstruments.com\/application-notes\/assessing-stability-in-feedback-control-loops\/\">application note<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"642\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_locked_frequency_noise-1024x642.png\" alt=\"\" class=\"wp-image-25833\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_locked_frequency_noise-1024x642.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_locked_frequency_noise-300x188.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_locked_frequency_noise-768x481.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_locked_frequency_noise-1536x962.png 1536w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_locked_frequency_noise-2048x1283.png 2048w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_locked_frequency_noise-600x376.png 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 9: The calculated amplitude spectral density (ASD) of the frequency noise is shown in this figure. The frequency noise is significantly reduced in the low-frequency range, while a noise peak is observed at around 4 kHz. At higher frequencies, the frequency noise matches the free-running noise floor.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-open-loop-transfer-function-measurement\">Open-loop transfer function measurement<\/h2>\n\n\n\n<p>Optimizing the stability and performance of the VCO feedback system requires a detailed understanding of its frequency-domain behavior. The OLTF is a critical tool in this analysis, as it provides insights into system gain, phase margin, and overall stability. These characteristics directly inform how the proportional, integral, and derivative components of the controller should be adjusted. This section begins by introducing the OLTF and the method used to obtain it, followed by a discussion on how it guides system optimization.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-loop-model\">Loop model<\/h3>\n\n\n\n<p>A simplified model of the feedback loop is shown in Figure 10. In this model, the phase detector is represented as a subtractor, reflecting its function in the locked condition: it outputs the phase difference between the reference signal and the VCO output. As previously described, the demodulation process is responsible for generating this phase error. Under locked conditions, the error signal takes the form:<\/p>\n\n\n\n<p class=\"has-text-align-center\">\\(e(t) = \\phi_{ref} &#8211; \\phi_{out} \\)<\/p>\n\n\n\n<p>which serves as the input to the controller. With this foundation, the OLTF can be derived and measured to evaluate system stability and guide parameter tuning in a systematic way.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"270\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PLL_model-1024x270.png\" alt=\"\" class=\"wp-image-25834\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PLL_model-1024x270.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PLL_model-300x79.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PLL_model-768x203.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PLL_model-1536x405.png 1536w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PLL_model-600x158.png 600w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PLL_model.png 1879w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 10: Model of the PLL implemented with the Lock-in Amplifier. The demodulation process functions as a phase subtractor.<\/figcaption><\/figure>\n\n\n\n<p>The feedback loop in the Laplace domain can be modeled by the following equation, where \\(\\text{PID}(s)\\) and \\(\\text{VCO}(s)\\) represent the transfer function of the PID controller and the VCO, respectively. Note that the phase detector (subtractor) is assumed to have unity gain for simplicity. In experiments, recognition and compensation for the phase detector gain will be necessary during system modeling.<\/p>\n\n\n\n<p class=\"has-text-align-center\">\\(\\left(\\phi_{ref} &#8211; \\phi_{out}\\right) = \\text{PID}(s) \\times \\text{VCO}(s) = \\phi_{out}\\)<\/p>\n\n\n\n<p>Rearranging the loop, the closed-loop transfer function (CLTF) \\(H(s)\\) is given by:<\/p>\n\n\n\n<p class=\"has-text-align-center\">\\(H(s) = \\frac{\\phi_{out}}{\\phi_{ref}} = \\frac{\\text{PID}(s) \\times \\text{VCO}(s)}{1 + \\text{PID}(s) \\times \\text{VCO}(s)} = \\frac{G(s)}{1+G(s)}\\)<\/p>\n\n\n\n<p>Where \\(G(s) = \\text{PID}(s) \\times \\text{VCO}(s)\\) is the OLTF. \\(G(s)\\) plays a central role in determining the behavior of the closed-loop system. Since \\(G(s)\\) appears in both the numerator and denominator of the closed-loop transfer function \\(H(s)\\), its properties directly influence system stability. Of particular importance is the condition where \\(G(s)=-1\\), which causes the denominator of \\(H(s)\\) to approach zero\u2014leading to unbounded gain and instability. This critical point must be carefully avoided in feedback system design.<\/p>\n\n\n\n<p>To assess how close the system is to this instability threshold, frequency-domain stability metrics such as gain margin and phase margin are used. This section focuses on evaluating these margins to determine the robustness of the control loop and to guide further tuning of controller parameters.<\/p>\n\n\n\n<p>The initial step in OLTF \\(G(s)\\) characterization is to determine the transfer function of the VCO. This is achieved by injecting a swept-frequency dithering signal into the VCO\u2019s tuning port and analyzing the corresponding frequency change of the VCO output.<\/p>\n\n\n\n<p>Figure 11 illustrates the setup used to characterize the transfer function of the VCO. In this configuration, the <a href=\"https:\/\/liquidinstruments.com\/products\/integrated-instruments\/frequency-response-analyzer\/\" target=\"_blank\" rel=\"noreferrer noopener\">Frequency Response Analyzer<\/a> generates a low-amplitude swept-frequency dithering signal, which is output through <strong>OutA<\/strong> and applied to the frequency tuning port of the VCO. While this signal stimulates the VCO, the Frequency Response Analyzer simultaneously performs magnitude and phase response measurements.<\/p>\n\n\n\n<p>The instantaneous output frequency of the VCO is measured by the Phasemeter, converted into a voltage signal using a frequency-to-voltage scaling factor of 10 \u00b5V\/Hz, and then fed back into the Frequency Response Analyzer. This arrangement enables automated and accurate determination of the VCO\u2019s transfer function.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"328\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Response-principle-1024x328.png\" alt=\"\" class=\"wp-image-25838\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Response-principle-1024x328.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Response-principle-300x96.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Response-principle-768x246.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Response-principle-1536x492.png 1536w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Response-principle-600x192.png 600w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Response-principle.png 1953w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 11: The block diagram illustrating the VCO frequency response measurements.<\/figcaption><\/figure>\n\n\n\n<p>Figure 12 shows the Moku:Pro Multi-Instrument Mode configuration used for transfer function measurement. The output of the VCO is connected to <strong>InA<\/strong> of the Phasemeter, which continuously monitors the VCO\u2019s frequency. This frequency data is then transmitted via an internal signal bus to <strong>InA<\/strong> of the Frequency Response Analyzer.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"939\" height=\"537\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/multi-instrument-mode-vco-lowpass.png\" alt=\"\" class=\"wp-image-25839\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/multi-instrument-mode-vco-lowpass.png 939w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/multi-instrument-mode-vco-lowpass-300x172.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/multi-instrument-mode-vco-lowpass-768x439.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/multi-instrument-mode-vco-lowpass-600x343.png 600w\" sizes=\"(max-width: 939px) 100vw, 939px\" \/><figcaption class=\"wp-element-caption\">Figure 12: The Multi-Instrument Mode configuration used to measure the transfer function of the VCO is shown. The Phasemeter measures the frequency at In1 and sends the measured frequency offset as a voltage signal to Bus1, based on the defined frequency-to-voltage scaling. The Frequency Response Analyzer outputs a frequency sweep dithering signal through Out1 and provides a DC offset via Out2 to power the VCO. It then processes the frequency data from the Phasemeter to generate the frequency response of the VCO.<\/figcaption><\/figure>\n\n\n\n<p>The Phasemeter user interface is shown in Figure 13, displaying the measured time-domain frequency trace. The frequency offset is sent to the Frequency Response Analyzer for transfer function measurement. From the displayed data, it is evident that the VCO frequency deviation increases over time. It is important to note that the Frequency Response Analyzer dithering output amplitude remains constant while sweeping the dithering signal frequency. It indicates that the VCO can only follow the dithering signal effectively when the dithering signal is varying slowly. Hence, it can be modeled as a lowpass response.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"994\" height=\"643\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/phasemeter-vco-response-lowpass.png\" alt=\"\" class=\"wp-image-25840\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/phasemeter-vco-response-lowpass.png 994w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/phasemeter-vco-response-lowpass-300x194.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/phasemeter-vco-response-lowpass-768x497.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/phasemeter-vco-response-lowpass-600x388.png 600w\" sizes=\"(max-width: 994px) 100vw, 994px\" \/><figcaption class=\"wp-element-caption\">Figure 14: The measured frequency is displayed in the time domain and output with a frequency-to-voltage scaling of 10 \u00b5V\/Hz.<\/figcaption><\/figure>\n\n\n\n<p>The frequency offset is then processed by the Frequency Response Analyzer, which measures the magnitude and phase of the signal across a range of dithering frequencies. The measured response of the VCO is shown in Figure 14. The lowpass corner frequency is estimated at 9.538 kHz, and the VCO gain is approximately 83,497 Hz\/V.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"993\" height=\"643\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/fra-vco-lowpass.png\" alt=\"\" class=\"wp-image-25841\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/fra-vco-lowpass.png 993w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/fra-vco-lowpass-300x194.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/fra-vco-lowpass-768x497.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/fra-vco-lowpass-600x389.png 600w\" sizes=\"(max-width: 993px) 100vw, 993px\" \/><figcaption class=\"wp-element-caption\">Figure 14: The Frequency Response Analyzer outputs a 100 mVpp frequency-swept sine wave and analyzes the resulting VCO frequency change. The plot shows a lowpass response with a corner frequency of 9.538 kHz.<\/figcaption><\/figure>\n\n\n\n<p>The VCO frequency response, presented in Figure 15, is derived by normalizing the measured frequency response using the Frequency Response Analyzer with the Phasemeter\u2019s frequency-to-voltage conversion factor. While the response appears to exhibit two poles, the second pole arises from the limited tracking bandwidth of the Phasemeter and can therefore be neglected. By combining the VCO response with that of the controller, the OLTF can be determined. The lowpass filter within the Lock-in Amplifier is excluded from this analysis, as its corner frequency of 12.3 MHz lies well beyond the frequency range of interest and has no significant influence on the OLTF in the low-frequency regime.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"622\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/vco_response_lowpass-1024x622.png\" alt=\"\" class=\"wp-image-25843\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/vco_response_lowpass-1024x622.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/vco_response_lowpass-300x182.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/vco_response_lowpass-768x466.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/vco_response_lowpass-1536x932.png 1536w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/vco_response_lowpass-2048x1243.png 2048w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/vco_response_lowpass-600x364.png 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 15: Measured response compared with the simulated response based on a 1st-order lowpass model. The second pole observed in the measured data is excluded because it originates from the Phasemeter measurement loop.<\/figcaption><\/figure>\n\n\n\n<p>To model the system in MATLAB, the OLTF can be constructed as follows. The PI controller model is based on the s domain representation described in the previous <a href=\"https:\/\/liquidinstruments.com\/application-notes\/digital-pid-controller-analysis\/\" target=\"_blank\" rel=\"noreferrer noopener\">control series application notes<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"120\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-23-at-4.32.25-PM-1024x120.png\" alt=\"\" class=\"wp-image-25844\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-23-at-4.32.25-PM-1024x120.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-23-at-4.32.25-PM-300x35.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-23-at-4.32.25-PM-768x90.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-23-at-4.32.25-PM-600x70.png 600w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-23-at-4.32.25-PM.png 1291w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The system parameters are configured as follows: \\(f_{VCO} = \\text{9.538 kHz}\\), \\(G_{VCO} = \\text{83,497 Hz\/volt}\\),  \\(P_{dB} = \\text{-10 dB}\\), and \\(I_{cross} = \\text{100 Hz}\\). It is important to note that the OLTF includes a VCO integrator, representing the frequency-to-phase conversion, since the detected error signal in the Lock-in Amplifier is expressed in phase. Additionally, the 450 ns delay accounts for the Lock-in Amplifier processing delay and input-to-output latency in the Moku:Pro. Once the model is established, the next step involves measuring the actual OLTF and comparing it with the modeled response to validate its accuracy.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-loop-measurement\">Loop measurement<\/h3>\n\n\n\n<p>Referring to the previously released application note in the control theory series, the block diagram for measuring \\(G(s)\\) is shown in Figure 16. In this setup, the dithering signal is injected at the point between the PID controller and the VCO.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"371\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/dither_model-1024x371.png\" alt=\"\" class=\"wp-image-25847\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/dither_model-1024x371.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/dither_model-300x109.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/dither_model-768x278.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/dither_model-1536x556.png 1536w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/dither_model-600x217.png 600w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/dither_model.png 1820w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 16: Model for measuring the VCO open-loop transfer function by injecting a dithering signal into the loop and measuring the response before and after the injection point.<\/figcaption><\/figure>\n\n\n\n<p>The transfer functions at points <em>A<\/em> and<em> B<\/em> within the feedback loop can be derived from the system\u2019s response to an externally injected dithering signal. During this measurement, the reference phase \\(\\phi_{ref}\\) is set to zero, meaning the phase detector contributes only a negative sign to the loop.<\/p>\n\n\n\n<p>At point <em>A<\/em>, the transfer function can be expressed as:<\/p>\n\n\n\n<p class=\"has-text-align-center\">\\(\\left( A(s) + V(s) \\right) \\times \\text{VCO}(s) \\times -1 \\times \\text{PID}(s) = A(s)\\)<\/p>\n\n\n\n<p>where \\(V(s)\\) is the Laplace transform of the injected dithering signal \\(v(t)\\)<\/p>\n\n\n\n<p>Rearranging this expression yields the transfer function from the injected signal to the output at point <em>A<\/em>:<\/p>\n\n\n\n<p class=\"has-text-align-center\">\\(\\frac{A(s)}{V(s)} = \\frac{-1 \\times \\text{VCO}(s) \\times \\text{PID}(s)}{1 + \\text{VCO}(s) \\times \\text{PID}(s)} = \\frac{-G(s)}{1+G(s)}\\)<\/p>\n\n\n\n<p>This expression shows that, under high loop gain \\(G(s) \\gg 1\\), the output at point <em>A<\/em> closely tracks the negative of the input, i.e., \\(\\frac{A(s)}{V(s)} \\approx -1\\), which corresponds to negative reference tracking.<\/p>\n\n\n\n<p>At point <em>B<\/em>, the relationship can be written as:<\/p>\n\n\n\n<p class=\"has-text-align-center\">\\(B(s) \\times \\text{VCO}(s) \\times -1 \\times \\text{PID}(s) + V(s) = B(s)\\)<\/p>\n\n\n\n<p>Solving for the transfer function yields:<\/p>\n\n\n\n<p class=\"has-text-align-center\">\\(\\frac{B(s)}{V(s)} = \\frac{1}{1 + \\text{VCO}(s) \\times \\text{PID}(s)} = \\frac{1}{1+G(s)}\\)<\/p>\n\n\n\n<p>This indicates that, when \\(G(s)\\) is large, the signal at point <em>B<\/em> is significantly attenuated. Consequently, the transfer function at point <em>B<\/em> characterizes disturbance rejection, effectively suppressing the dithering signal \\(V(s)\\) at that point.<\/p>\n\n\n\n<p>By taking the ratio of the transfer functions at points <em>A<\/em> and <em>B<\/em>, the OLTF \\(G(s)\\) can be recovered:<\/p>\n\n\n\n<p class=\"has-text-align-center\">\\(\\frac{A(s)}{B(s)} = -G(s)\\)<\/p>\n\n\n\n<p>The experimental setup, illustrated in Figure 17, implements this concept. The dithering signal \\(v(t)\\) is injected into the VCO feedback loop via a <a href=\"https:\/\/liquidinstruments.com\/moku-cloud-compile\/\" target=\"_blank\" rel=\"noreferrer noopener\">Moku Cloud Compile<\/a> configured as a simple adder. Both the control signal \\(c(t)\\) before injection and the combined signal \\(c(t)+v(t)\\) after injection are simultaneously measured using two channels of the Frequency Response Analyzer. This allows the system to capture the transfer functions at points <em>A<\/em> and <em>B<\/em> for analysis.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"622\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/oltf_measure-1024x622.png\" alt=\"\" class=\"wp-image-25852\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/oltf_measure-1024x622.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/oltf_measure-300x182.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/oltf_measure-768x466.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/oltf_measure-1536x933.png 1536w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/oltf_measure-600x364.png 600w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/oltf_measure.png 1774w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 17: Block diagram used for measuring the OLTF. The Lock-in Amplifier forms the feedback loop, while the Frequency Response Analyzer captures both the <em>A<\/em> and <em>B<\/em> responses. A Moku Cloud Compile module functions as a simple adder, combining the control signal with the dithering signal before sending it to the VCO tuning input.<\/figcaption><\/figure>\n\n\n\n<p>The Multi-Instrument Mode configuration is presented in Figure 18 and corresponds to the block diagram illustrated in Figure 17. It is important to note that the Phasemeter in Slot 4 is used solely for monitoring purposes and does not participate in the feedback control loop.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"942\" height=\"537\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/multi-instrument-mode-PID-max.png\" alt=\"\" class=\"wp-image-25853\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/multi-instrument-mode-PID-max.png 942w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/multi-instrument-mode-PID-max-300x171.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/multi-instrument-mode-PID-max-768x438.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/multi-instrument-mode-PID-max-600x342.png 600w\" sizes=\"(max-width: 942px) 100vw, 942px\" \/><figcaption class=\"wp-element-caption\">Figure 18: The Multi-Instrument Mode configuration mirrors the block diagram setup in Figure 17. In1 receives the VCO output, while Out1 connects to the VCO&#8217;s frequency tuning port. This output combines the control signal from the Lock-in Amplifier\u2019s OutA with the dithering signal from the Frequency Response Analyzer\u2019s OutA via Bus1. The Frequency Response Analyzer measures the transfer functions at points <em>A<\/em> and <em>B <\/em>in Figure 16. The Phasemeter in Slot 4 is only for monitoring.<\/figcaption><\/figure>\n\n\n\n<p>The Frequency Response Analyzer user interface is shown in Figure 19. In this setup, Channel A (red trace) represents the transfer function from the dithering signal \\(v(t)\\) to the control signal \\(c(t)\\). Channel B (blue trace) shows the combined signal \\(c(t)+v(t)\\), which represents the tuning input to the VCO. The OLTF is obtained by dividing the magnitude and subtracting the phase of Channel A from those of Channel B. The resulting OLTF is displayed on the Math channel (orange trace).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"993\" height=\"638\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/fra-oltf-PI.png\" alt=\"\" class=\"wp-image-25854\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/fra-oltf-PI.png 993w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/fra-oltf-PI-300x193.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/fra-oltf-PI-768x493.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/fra-oltf-PI-600x385.png 600w\" sizes=\"(max-width: 993px) 100vw, 993px\" \/><figcaption class=\"wp-element-caption\">Figure 19: The resulting frequency response is displayed, where Channel A represents the transfer function at point A and Channel B corresponds to the transfer function at point B, as illustrated in Figure 16 and 17. The Math channel (orange) displays the measured OLTF.<\/figcaption><\/figure>\n\n\n\n<p>The OLTF model developed in the previous section is simulated in MATLAB and compared against the measured response obtained from the Frequency Response Analyzer, as shown in Figure 20. The simulation exhibits strong agreement with the measured data in both magnitude and phase. An additional 180\u00b0 is subtracted from the measured phase response to account for the inherent phase inversion introduced by the negative feedback configuration.<\/p>\n\n\n\n<p>The measurement is most accurate in the vicinity of the unity gain frequency. At higher frequencies, the control loop lacks sufficient bandwidth to track the injected dithering signal at point <em>A<\/em> (Figure 16), leading to reduced measurement fidelity. At the other end of the spectrum, very low frequencies are strongly suppressed by the loop, leaving only a minimal residual of the dithering signal \\(v(t)\\) at point <em>B<\/em> (Figure 16), which limits the usefulness of measurements in both low- and high-frequency regions.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"796\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_oltf_compare-1024x796.png\" alt=\"\" class=\"wp-image-25855\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_oltf_compare-1024x796.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_oltf_compare-300x233.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_oltf_compare-768x597.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_oltf_compare-1536x1194.png 1536w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_oltf_compare-2048x1592.png 2048w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_oltf_compare-600x466.png 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 20: The measured OLTF \\(G(s)\\) is compared with the simulated response, showing good agreement. Only the measurements near the unity gain frequency are considered reliable.<\/figcaption><\/figure>\n\n\n\n<p>In addition to the OLTF shown in Figure 20, the reference tracking and disturbance rejection responses are also generated and displayed in Figure 21. In the measured reference tracking, the phase response is shifted by 180\u00b0 because the measured response is \\(\\frac{-G(s)}{1+G(s)}\\), rather than the typical \\(\\frac{G(s)}{1+G(s)}\\) form.<\/p>\n\n\n\n<p>A gain peak appears in the disturbance rejection response around 3 kHz, which corresponds to the noise peak observed in the measured frequency noise after locking shown in Figure 9. This gain peaking results from the small phase margin of the current OLTF, causing noise to increase rather than decrease.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"803\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_track_Reject-1024x803.png\" alt=\"\" class=\"wp-image-25856\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_track_Reject-1024x803.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_track_Reject-300x235.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_track_Reject-768x602.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_track_Reject-1536x1205.png 1536w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_track_Reject-2048x1606.png 2048w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PI_track_Reject-600x471.png 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 21: The simulated and measured reference tracking and disturbance rejection responses are presented. It is important to note that gain peaking occurs near the 3 kHz region in the disturbance rejection plot, which explains the observed noise peak in Figure 9.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-loop-optimization\">Loop optimization<\/h2>\n\n\n\n<p>The primary motivation for measuring the OLTF and modeling the system is to optimize the performance of the locking loop. As discussed in the previous application note, the key indicators derived from the OLTF\u2014loop gain, phase margin, and gain margin\u2014are critical for evaluating and improving feedback system. An effective control system should maximize low frequency gain to suppress disturbances while maintaining sufficient phase and gain margins to ensure stability and robustness against noise and parameter variations.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-add-1-khz-differentiator-term\">Add 1 kHz differentiator term<\/h3>\n\n\n\n<p>As shown in the OLTF plot in Figure 20, the PI-controlled feedback loop features three contributing poles near the unity gain frequency. These arise from the VCO\u2019s intrinsic integrator, which performs frequency-to-phase conversion, its 1st-order lowpass response, and the integrator component of the PI controller. Together, these three poles contribute a total phase shift of 270\u00b0, which poses a risk of instability if not properly managed. <\/p>\n\n\n\n<p>The unity gain frequency is situated between the 100 Hz crossover point of the PI integrator and the 9.538 kHz corner frequency of the VCO\u2019s lowpass filter. In this intermediate region, the effect of the PI integrator is diminishing, whereas the lowpass pole\u2019s influence is not yet fully established. This overlap produces a modest phase bump, placing the unity gain frequency in a zone that provides a limited but sufficient phase margin. As a result, the system maintains a phase margin of approximately 30\u00b0 and a gain margin around 76.47, ensuring stable operation.<\/p>\n\n\n\n<p>Figure 22 includes a reference line representing the 450 ns delay introduced by the Lock-in Amplifier\u2019s processing time and the input-to-output latency. This delay does not yet limit the system\u2019s phase margin, indicating room for additional phase compensation. To enhance stability, within the 1 to 100 kHz frequency range, a differentiator term can be added to the controller to provide up to 90\u00b0 of phase lead. In this case, a differentiator with a crossover frequency of 1 kHz is introduced. The revised PID controller and its corresponding OLTF are expressed by the following equation:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"98\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-23-at-5.08.34-PM-1024x98.png\" alt=\"\" class=\"wp-image-25857\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-23-at-5.08.34-PM-1024x98.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-23-at-5.08.34-PM-300x29.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-23-at-5.08.34-PM-768x74.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-23-at-5.08.34-PM-600x58.png 600w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-23-at-5.08.34-PM.png 1290w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The updated OLTF \\(G_{PID}(s)\\), which includes the differentiator term, is plotted in Figure 22 for comparison. The differentiator crossover frequency \\(D_{cross}\\) is set to 1 kHz, while all other parameters remain the same as in the previous PI-controlled loop \\(G_{PI}(s)\\). In Figure 22, the blue curve represents \\(G_{PI}(s)\\), and the orange curve represents the enhanced \\(G_{PID}(s)\\). The gain and phase margins for both configurations are also indicated. While the gain margins remain largely unchanged, the phase margin increases significantly\u2014from 30.45\u00b0 in the PI case to 93.49\u00b0 with the PID configuration. This confirms the effectiveness of introducing the 1 kHz differentiator. Additionally, the unity gain frequency shifts higher in the PID case, indicating an increased control bandwidth.<\/p>\n\n\n\n<p>Further optimization will focus on improving the magnitude response, as the phase response of the \\(G_{PID}(s)\\) is constrained by the inherent delay at higher frequencies.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"802\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step1-1024x802.png\" alt=\"\" class=\"wp-image-25858\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step1-1024x802.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step1-300x235.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step1-768x601.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step1-1536x1202.png 1536w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step1-2048x1603.png 2048w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step1-600x470.png 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 22: The phase margin of \\(G(s)\\) is limited due to the presence of three poles near the unity gain frequency. A zero is introduced via a differentiator to cancel one of these poles. The phase margin is significantly enhanced in the 1 to 100 kHz frequency range. The 450 ns reference line represents the phase delay introduced by the inherent Moku:Pro processing and the input-to-output signal delay.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-raise-proportional-gain-to-10-db\">Raise proportional gain to 10 dB<\/h3>\n\n\n\n<p>With the introduction of the 1 kHz differentiator, the phase margin improves significantly in the frequency range from 1 to 100 kHz, and the gain margin reaches 84.79. This provides ample room to increase the proportional gain and enhance the open-loop gain while maintaining system stability. A 20 dB increase in proportional gain is acceptable, as it would reduce the gain margin to 8.479 and shift the unity gain frequency to approximately 60 kHz, which still falls within the stable operating range. As a result, both gain and phase margins remain sufficient, and the loop gain increases by 20 dB. The updated OLTF is plotted in Figure 23, where the revised gain and phase margins are also indicated.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"804\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step2-1024x804.png\" alt=\"\" class=\"wp-image-25861\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step2-1024x804.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step2-300x236.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step2-768x603.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step2-1536x1207.png 1536w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step2-2048x1609.png 2048w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step2-600x471.png 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 23: The proportional gain is increased to 10 dB to boost the \\(|G(s)|\\), making use of the ample phase margin available at higher frequencies while also enhancing the overall loop gain. The gain margin decreased to 8.48, and the phase margin changed to 79.84\u00b0. The black dotted line shows the gain and phase responses from the previous step for reference. The phase response remains unchanged because only the P term was modified in this step, and this does not affect the phase response.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-move-integrator-and-differentiator-frequencies-higher\">Move integrator and differentiator frequencies higher<\/h3>\n\n\n\n<p>To further enhance the low-frequency gain, the integrator and differentiator gains can be increased, as the available phase headroom between 1 and 100 kHz allows for such a trade-off without significantly impacting the phase margin at higher frequencies. In this configuration, the integrator crossover frequency is raised to 3 kHz and the differentiator crossover frequency to 20 kHz, resulting in a further increase in low-frequency loop gain.<\/p>\n\n\n\n<p>The updated OLTF is shown in Figure 24, where both the gain and phase margins are annotated. These margins are now limited, suggesting the system may become unstable. By examining the transfer function, it is observed that the unity gain frequency shifts to 8 kHz due to the raised differentiator crossover frequency. However, at approximately 100 kHz, the phase remains well above the critical -180\u00b0 threshold, indicating that additional proportional gain can be applied to push the unity gain frequency higher and recover phase margin.<\/p>\n\n\n\n<p>It is important to note that the OLTF crosses the -180\u00b0 phase multiple times, leading to multiple gain margins, with only the two margins closest to the critical instability point, where \\(G(s)=-1\\), being of primary interest. Increasing the proportional gain causes \\(|G(s)|\\) to move further away from unity near 5.6 kHz, while simultaneously bringing it closer to unity near 528 kHz. This shift introduces a tradeoff between the gain margins on either side of the unity gain frequency.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"806\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step3-1024x806.png\" alt=\"\" class=\"wp-image-25863\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step3-1024x806.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step3-300x236.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step3-768x605.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step3-1536x1209.png 1536w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step3-2048x1612.png 2048w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step3-600x472.png 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 24: The integrator and differentiator crossover frequencies are raised to 3 kHz and 20 kHz separately to further enhance the \\(|G(s)|\\). This adjustment reduces the gain margins to 0.5 and 165.5 and the phase margin to 10.5\u00b0. The black dotted line shows the gain and phase responses from the previous step for reference.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-raise-proportional-gain-to-35-db\">Raise proportional gain to 35 dB<\/h3>\n\n\n\n<p>With the understanding that increasing the proportional gain can improve both loop stability and gain, the proportional gain is raised to 35 dB, representing a 25 dB increase. This adjustment shifts the unity gain frequency to approximately 70 kHz, resulting in a more favorable phase margin while also balancing the two gain margins on either side of the unity point. The updated open loop transfer function is shown in Figure 25. It now exhibits a phase margin of 62.6\u00b0 and two gain margins of 0.028 and 9.31, indicating the system has an appropriate safety margin from \\(G(s)=-1\\).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"805\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step4-1024x805.png\" alt=\"\" class=\"wp-image-25864\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step4-1024x805.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step4-300x236.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step4-768x604.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step4-1536x1208.png 1536w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step4-2048x1610.png 2048w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/step4-600x472.png 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 25: The proportional gain is raised to 35 dB to leverage the better phase margin near 100 kHz. This adjustment results in gain margins of 0.028 and 9.31, and a phase margin of 62.6\u00b0. The black dotted line shows the gain and phase responses from the previous step for reference. The phase response remains unchanged because only the proportional (P) term was modified in this step, and this does not affect the phase.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-stability-analysis-with-nyquist-criteria\">Stability analysis with Nyquist criteria<\/h3>\n\n\n\n<p>In Figure 25, it is observed that the phase response crosses the 180\u00b0 point twice. One of these crossings, occurring around 5.6 kHz, corresponds to a gain \\(|G(s)|\\) greater than one. This condition can lead to positive feedback at that frequency, potentially amplifying noise and causing instability. To assess the stability of the system more rigorously, it is essential to analyze the poles of the closed loop system. Recalling the basic closed loop expression, the system&#8217;s output-to-input transfer function is given by \\(H(s)= \\frac{G(s)}{1+G(s)}\\), so the poles of \\(H(s)\\) are the zeros of \\(1+G(s)\\).<\/p>\n\n\n\n<p>A useful method for this analysis is the Nyquist plot, which evaluates the OLTF \\(G(s)\\) along a contour that encloses the entire right half of the <em>s<\/em> plane. This approach is especially valuable for systems that include a pure delay \\(e^{-\\tau s}\\), since such delays are transcendental and cannot be accurately represented using lumped element models. While a full explanation of the Nyquist criterion is beyond the scope of this note, many resources explain it thoroughly\u2014Chapter 3 of <em>A Guide to Feedback Theory<\/em> by Joel L. Dawson is a good place to begin.<\/p>\n\n\n\n<p>To apply the Nyquist criterion, let P represent the number of poles of \\(G(s)\\) in the right half of the <em>s<\/em> plane, and <em>N<\/em> denote the number of encirclements around the critical point \\((-1,0j)\\). Then <em>Z<\/em>, the number of zeros of \\(1+G(s)\\) in the right half plane, satisfies the relationship \\(N=Z-P\\). Therefore, by determining the number of right half plane poles in \\(G(s)\\), and counting the encirclements of \\((-1,0j)\\), one can directly infer the stability of the closed-loop system.<\/p>\n\n\n\n<p>Figure 26 presents the Nyquist plot for the system, with the critical point \\((-1,0j)\\) marked by a red cross. The plot shows one counterclockwise encirclement of \\((-1,0j)\\) in Figure 25, which suggests potential instability. However, due to the presence of two pure integrators in the loop\u2014one from the VCO\u2019s frequency to phase conversion and the other from the PID controller\u2014the plot extends to infinite radius, making quantitative analysis infeasible. The system must also be evaluated using a qualitative method.<\/p>\n\n\n\n<p>As the complex frequency variable s rotates 180\u00b0 counterclockwise around the origin in the s plane, the two integrators represented by poles at the origin contribute a total of 360\u00b0 of clockwise phase shift at infinite radius in the Nyquist plot. This produces one clockwise encirclement that cancels the initial counterclockwise encirclement, resulting in a net encirclement of zero.<\/p>\n\n\n\n<p>Since the OLTF has no poles in the right half <em>s<\/em> plane and the total encirclement of the point \\((-1,0j)\\) is also zero, the closed-loop system has no poles in the right half of the s plane. Therefore, the optimized system remains stable.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"834\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/nyquist_plot-1024x834.png\" alt=\"\" class=\"wp-image-25868\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/nyquist_plot-1024x834.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/nyquist_plot-300x244.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/nyquist_plot-768x625.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/nyquist_plot-1536x1250.png 1536w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/nyquist_plot-2048x1667.png 2048w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/nyquist_plot-600x488.png 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 26: The Nyquist plot of the OLTF is shown, with the critical point at \\((-1,0j)\\) marked by a red cross. A closed counterclockwise encirclement of this point is observed, while the expected clockwise encirclement at infinite radius is not visually apparent.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-open-loop-transfer-function-of-the-optimized-loop\">Open-loop transfer function of the optimized loop<\/h3>\n\n\n\n<p>After optimizing the OLTF and verifying the stability of the closed-loop system, the PID controller is configured with a proportional gain of 35 dB, an integrator crossover frequency of 3 kHz, and a differentiator crossover frequency of 20 kHz. The system is then measured to validate the model. Figure 27 displays both the measured and simulated OLTF, while Figure 28 shows the system\u2019s reference tracking and disturbance rejection. The measured results closely match the model predictions.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"796\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_oltf_compare-1-1024x796.png\" alt=\"\" class=\"wp-image-25869\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_oltf_compare-1-1024x796.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_oltf_compare-1-300x233.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_oltf_compare-1-768x597.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_oltf_compare-1-1536x1194.png 1536w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_oltf_compare-1-2048x1592.png 2048w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_oltf_compare-1-600x466.png 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 27: Measured and simulated optimized OLTF are shown. The two responses align well in both magnitude and phase. Only the measurements near the unity gain frequency can be considered reliable.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"700\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_track_Reject-1024x700.png\" alt=\"\" class=\"wp-image-25870\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_track_Reject-1024x700.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_track_Reject-300x205.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_track_Reject-768x525.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_track_Reject-1536x1050.png 1536w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_track_Reject-2048x1400.png 2048w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_track_Reject-600x410.png 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 28: The measured and simulated reference tracking and disturbance rejection responses closely match each other.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-noise-characterization\">Noise characterization <\/h2>\n\n\n\n<p>This section evaluates frequency noise using the same Moku:Pro device, with the internal clock serving as the reference; thus, any jitter or phase noise from the clock itself is excluded from the measurements. To reduce the influence of sensor noise on the frequency noise analysis, an out-of-loop frequency sensor is used. In this configuration, the primary source of sensor noise is the analog-to-digital converter (ADC). As shown in Figure 29, the VCO output is divided into two separate paths to enhance measurement accuracy: one path is sent to ADC Input 1 to generate the error signal for the feedback loop, while the other is routed to ADC Input 3 and the Phasemeter, which serves as an independent out-of-loop sensor for measuring the VCO\u2019s frequency noise.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"715\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/frequency_noise_measure-1024x715.png\" alt=\"\" class=\"wp-image-25871\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/frequency_noise_measure-1024x715.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/frequency_noise_measure-300x209.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/frequency_noise_measure-768x536.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/frequency_noise_measure-600x419.png 600w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/frequency_noise_measure.png 1401w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 29: Frequency noise measurement setup: The VCO output is split into two signal paths. One path connects to ADC Input 1 and the Lock-in Amplifier, forming the feedback loop. The other path connects to ADC Input 3 and the Phasemeter, which functions as an out-of-loop sensor for characterizing frequency noise.<\/figcaption><\/figure>\n\n\n\n<p>Frequency noise was measured under three conditions: free-running, locked with a PI controller, and locked with the optimized PID controller. The time-domain results are shown in Figure 30. The optimized PID controller achieves a peak-to-peak frequency noise of approximately \u00b120 Hz, approaching the noise floor of the Phasemeter (indicated by the purple line).<\/p>\n\n\n\n<p>This performance is achieved because the control loop attenuates disturbances by a factor of one over \\(\\frac{1}{1+G(s)}\\). In the optimized configuration, the loop gain is sufficiently high to effectively suppress the noise in the loop, including environmental vibrations and temperature variations that could affect the VCO frequency.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"792\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_time_series-1024x792.png\" alt=\"\" class=\"wp-image-25872\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_time_series-1024x792.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_time_series-300x232.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_time_series-768x594.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_time_series-1536x1189.png 1536w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_time_series-2048x1585.png 2048w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_time_series-600x464.png 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 30: Measured time-domain frequency noise is shown for four cases: free-running VCO, VCO locked with a PI controller, VCO locked with the optimized PID controller, and the Phasemeter noise floor. The VCO locked with the optimized PID controller closely approaches the Phasemeter noise floor, indicating effective noise suppression.<\/figcaption><\/figure>\n\n\n\n<p>Figure 31 presents the ASD of the measured frequency noise. The purple trace, corresponding to the optimized PID controller, closely aligns with the Phasemeter\u2019s noise floor, indicating that the system is operating near its performance limit. The absence of pronounced noise peaks further confirms that the optimized open-loop transfer function provides sufficient phase margin, ensuring stable and well-damped behavior.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"639\" src=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_locked_frequency_noise-1024x639.png\" alt=\"\" class=\"wp-image-25873\" srcset=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_locked_frequency_noise-1024x639.png 1024w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_locked_frequency_noise-300x187.png 300w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_locked_frequency_noise-768x479.png 768w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_locked_frequency_noise-1536x959.png 1536w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_locked_frequency_noise-2048x1278.png 2048w, https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_locked_frequency_noise-600x375.png 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 31: The ASD of the measured frequency noise. For the VCO locked with the optimized PID controller, no noise peaking is observed, which reflects the benefit of having sufficient phase margin.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-summary\">Summary<\/h2>\n\n\n\n<p>This application note details the analysis and optimization of a PLL system comprising a VCO and a Lock-in Amplifier equipped with an internal PID controller. By systematically tuning the proportional, integral, and derivative components, the OLTF \\(G(s)\\) was shaped to maximize loop gain while preserving adequate phase and gain margins to ensure stable operation. System stability was confirmed using the Nyquist criterion, verifying the absence of right-half-plane poles in the CLTF \\(H(s)\\).<\/p>\n\n\n\n<p>Experimental validation included a comparison between measured and simulated OLTF, with the results showing close agreement. Frequency noise performance was assessed under three operating conditions: free-running, locked with a PI controller, and locked with the optimized PID controller. The optimized configuration achieved performance close to the Phasemeter noise floor, demonstrating its effectiveness in suppressing external disturbances such as mechanical vibrations and temperature-induced frequency drifts.<\/p>\n\n\n<div data-component=\"form_button\" class=\"flex flex-col\">\n  <sl-button class=\"button relative gap-2 items-center blue filled medium  self-center  open-dialog open-69a16b6d2127a\">\n    Download application note\n  <\/sl-button>\n  <sl-dialog id=\"dialog-69a16b6d2127a\" label=\"Download application note\" class=\"dialog-overview\" style=\"--width: 600px;\">\n    <div data-hubspot-form=\"true\" class=\"hubspot-form hs-form-html\" data-form-id=\"0aca368f-9fbb-45b3-a7b0-cc06ed26c5ff\" data-form-id-zh=\"\" data-form-id-ja=\"\" data-form-id-ko=\"\" data-portal-id=\"3954510\" data-region=\"na1\"><\/div>\n  <\/sl-dialog>\n<\/div>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>Introduction As discussed in the previous control theory application note series, frequency domain analysis plays a critical role in designing and evaluating feedback systems, particularly in assessing their stability and overall noise rejection performance. While earlier notes focused on theoretical principles in the Laplace domain, this application note shifts to the practical implementation of those [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":49,"featured_media":25872,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[5],"tags":[322,315],"class_list":["post-25795","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-application-notes","tag-adinstrumentation","tag-controlcharacterization","site-category-frequency-response-analyzer","site-category-mokupro"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Optimizing a phase-locked loop via transfer function analysis<\/title>\n<meta name=\"description\" content=\"In this application note, we demonstrate how to optimize a phase-locked loop using Moku:Pro Multi-Instrument Mode.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Optimizing a phase-locked loop via open-loop transfer function analysis\" \/>\n<meta property=\"og:description\" content=\"In this application note, we demonstrate how to optimize a phase-locked loop using Moku:Pro Multi-Instrument Mode.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/\" \/>\n<meta property=\"og:site_name\" content=\"Liquid Instruments\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/LiquidInstruments\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-09-24T16:16:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-15T03:35:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_time_series.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1981\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jason Ball\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@liquidinstrmnts\" \/>\n<meta name=\"twitter:site\" content=\"@liquidinstrmnts\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jason Ball\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/\"},\"author\":{\"name\":\"Jason Ball\",\"@id\":\"https:\/\/liquidinstruments.com\/#\/schema\/person\/9e95fcc52e40f7754fd85152937b68fa\"},\"headline\":\"Optimizing a phase-locked loop via open-loop transfer function analysis\",\"datePublished\":\"2025-09-24T16:16:05+00:00\",\"dateModified\":\"2025-10-15T03:35:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/\"},\"wordCount\":6699,\"publisher\":{\"@id\":\"https:\/\/liquidinstruments.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_time_series.png\",\"keywords\":[\"ADinstrumentation\",\"controlcharacterization\"],\"articleSection\":[\"Application notes\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/\",\"url\":\"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/\",\"name\":\"Optimizing a phase-locked loop via transfer function analysis\",\"isPartOf\":{\"@id\":\"https:\/\/liquidinstruments.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_time_series.png\",\"datePublished\":\"2025-09-24T16:16:05+00:00\",\"dateModified\":\"2025-10-15T03:35:54+00:00\",\"description\":\"In this application note, we demonstrate how to optimize a phase-locked loop using Moku:Pro Multi-Instrument Mode.\",\"breadcrumb\":{\"@id\":\"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/#primaryimage\",\"url\":\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_time_series.png\",\"contentUrl\":\"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_time_series.png\",\"width\":2560,\"height\":1981},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/liquidinstruments.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Optimizing a phase-locked loop via open-loop transfer function analysis\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/liquidinstruments.com\/#website\",\"url\":\"https:\/\/liquidinstruments.com\/\",\"name\":\"Liquid Instruments\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/liquidinstruments.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/liquidinstruments.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/liquidinstruments.com\/#organization\",\"name\":\"Liquid Instruments\",\"url\":\"https:\/\/liquidinstruments.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/liquidinstruments.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/liquidinstruments.com\/wp-content\/uploads\/2020\/10\/BrandMark-Preferred-RGB-Color.png?fit=1000%2C924&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/liquidinstruments.com\/wp-content\/uploads\/2020\/10\/BrandMark-Preferred-RGB-Color.png?fit=1000%2C924&ssl=1\",\"width\":1000,\"height\":924,\"caption\":\"Liquid Instruments\"},\"image\":{\"@id\":\"https:\/\/liquidinstruments.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/LiquidInstruments\/\",\"https:\/\/x.com\/liquidinstrmnts\",\"https:\/\/www.instagram.com\/liquidinstruments\/\",\"https:\/\/www.linkedin.com\/company\/liquidinstruments\/\",\"https:\/\/www.youtube.com\/c\/LiquidInstruments\",\"https:\/\/vimeo.com\/liquidinstruments\"],\"hasMerchantReturnPolicy\":{\"@type\":\"MerchantReturnPolicy\",\"merchantReturnLink\":\"https:\/\/liquidinstruments.com\/support\/warranty-repairs-and-service\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/liquidinstruments.com\/#\/schema\/person\/9e95fcc52e40f7754fd85152937b68fa\",\"name\":\"Jason Ball\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/liquidinstruments.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b0e7502ee45ec194baeba408e7aa6836fee5a4bdef40b7b10bd8788a1b32ad6c?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b0e7502ee45ec194baeba408e7aa6836fee5a4bdef40b7b10bd8788a1b32ad6c?s=96&d=wavatar&r=g\",\"caption\":\"Jason Ball\"},\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/jason-ball-quantum\/\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Optimizing a phase-locked loop via transfer function analysis","description":"In this application note, we demonstrate how to optimize a phase-locked loop using Moku:Pro Multi-Instrument Mode.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/","og_locale":"en_US","og_type":"article","og_title":"Optimizing a phase-locked loop via open-loop transfer function analysis","og_description":"In this application note, we demonstrate how to optimize a phase-locked loop using Moku:Pro Multi-Instrument Mode.","og_url":"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/","og_site_name":"Liquid Instruments","article_publisher":"https:\/\/www.facebook.com\/LiquidInstruments\/","article_published_time":"2025-09-24T16:16:05+00:00","article_modified_time":"2025-10-15T03:35:54+00:00","og_image":[{"width":2560,"height":1981,"url":"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_time_series.png","type":"image\/png"}],"author":"Jason Ball","twitter_card":"summary_large_image","twitter_creator":"@liquidinstrmnts","twitter_site":"@liquidinstrmnts","twitter_misc":{"Written by":"Jason Ball","Est. reading time":"15 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/#article","isPartOf":{"@id":"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/"},"author":{"name":"Jason Ball","@id":"https:\/\/liquidinstruments.com\/#\/schema\/person\/9e95fcc52e40f7754fd85152937b68fa"},"headline":"Optimizing a phase-locked loop via open-loop transfer function analysis","datePublished":"2025-09-24T16:16:05+00:00","dateModified":"2025-10-15T03:35:54+00:00","mainEntityOfPage":{"@id":"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/"},"wordCount":6699,"publisher":{"@id":"https:\/\/liquidinstruments.com\/#organization"},"image":{"@id":"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/#primaryimage"},"thumbnailUrl":"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_time_series.png","keywords":["ADinstrumentation","controlcharacterization"],"articleSection":["Application notes"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/","url":"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/","name":"Optimizing a phase-locked loop via transfer function analysis","isPartOf":{"@id":"https:\/\/liquidinstruments.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/#primaryimage"},"image":{"@id":"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/#primaryimage"},"thumbnailUrl":"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_time_series.png","datePublished":"2025-09-24T16:16:05+00:00","dateModified":"2025-10-15T03:35:54+00:00","description":"In this application note, we demonstrate how to optimize a phase-locked loop using Moku:Pro Multi-Instrument Mode.","breadcrumb":{"@id":"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/#primaryimage","url":"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_time_series.png","contentUrl":"https:\/\/liquidinstruments.com\/wp-content\/uploads\/2025\/09\/PID_time_series.png","width":2560,"height":1981},{"@type":"BreadcrumbList","@id":"https:\/\/liquidinstruments.com\/application-notes\/optimizing-a-phase-locked-loop-via-transfer-function-analysis\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/liquidinstruments.com\/"},{"@type":"ListItem","position":2,"name":"Optimizing a phase-locked loop via open-loop transfer function analysis"}]},{"@type":"WebSite","@id":"https:\/\/liquidinstruments.com\/#website","url":"https:\/\/liquidinstruments.com\/","name":"Liquid Instruments","description":"","publisher":{"@id":"https:\/\/liquidinstruments.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/liquidinstruments.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/liquidinstruments.com\/#organization","name":"Liquid Instruments","url":"https:\/\/liquidinstruments.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/liquidinstruments.com\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/liquidinstruments.com\/wp-content\/uploads\/2020\/10\/BrandMark-Preferred-RGB-Color.png?fit=1000%2C924&ssl=1","contentUrl":"https:\/\/i0.wp.com\/liquidinstruments.com\/wp-content\/uploads\/2020\/10\/BrandMark-Preferred-RGB-Color.png?fit=1000%2C924&ssl=1","width":1000,"height":924,"caption":"Liquid Instruments"},"image":{"@id":"https:\/\/liquidinstruments.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/LiquidInstruments\/","https:\/\/x.com\/liquidinstrmnts","https:\/\/www.instagram.com\/liquidinstruments\/","https:\/\/www.linkedin.com\/company\/liquidinstruments\/","https:\/\/www.youtube.com\/c\/LiquidInstruments","https:\/\/vimeo.com\/liquidinstruments"],"hasMerchantReturnPolicy":{"@type":"MerchantReturnPolicy","merchantReturnLink":"https:\/\/liquidinstruments.com\/support\/warranty-repairs-and-service\/"}},{"@type":"Person","@id":"https:\/\/liquidinstruments.com\/#\/schema\/person\/9e95fcc52e40f7754fd85152937b68fa","name":"Jason Ball","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/liquidinstruments.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b0e7502ee45ec194baeba408e7aa6836fee5a4bdef40b7b10bd8788a1b32ad6c?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b0e7502ee45ec194baeba408e7aa6836fee5a4bdef40b7b10bd8788a1b32ad6c?s=96&d=wavatar&r=g","caption":"Jason Ball"},"sameAs":["https:\/\/www.linkedin.com\/in\/jason-ball-quantum\/"]}]}},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/liquidinstruments.com\/wp-json\/wp\/v2\/posts\/25795","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/liquidinstruments.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/liquidinstruments.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/liquidinstruments.com\/wp-json\/wp\/v2\/users\/49"}],"replies":[{"embeddable":true,"href":"https:\/\/liquidinstruments.com\/wp-json\/wp\/v2\/comments?post=25795"}],"version-history":[{"count":45,"href":"https:\/\/liquidinstruments.com\/wp-json\/wp\/v2\/posts\/25795\/revisions"}],"predecessor-version":[{"id":26250,"href":"https:\/\/liquidinstruments.com\/wp-json\/wp\/v2\/posts\/25795\/revisions\/26250"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/liquidinstruments.com\/wp-json\/wp\/v2\/media\/25872"}],"wp:attachment":[{"href":"https:\/\/liquidinstruments.com\/wp-json\/wp\/v2\/media?parent=25795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/liquidinstruments.com\/wp-json\/wp\/v2\/categories?post=25795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/liquidinstruments.com\/wp-json\/wp\/v2\/tags?post=25795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}