To simulate a phase-modulated interferometer, a novel electrical signal generator has been demonstrated. There are two phase-locked loop (PLL) circuits used in our system to process the phase signal. The first PLL is adopted as a voltage-controlled phase shifter, and the second PLL is used to amplify the phase signal to get a phase shift with a dynamic range over ±16π rad. This system can be further modulated with sinusoidal, sawtooth, and triangular wave forms for interferometric signal detection.