Using lock-in amplifer and proportional, integral, and derivative (PID) electric circuit, the frequency of diode laser is stabilized on a highly mechanical stable Fabry-Perot (FP) cavity transmission peak. When the frequency locking system is on, the