A radio-frequency-signal generator generates an RF signal. An optical
monitor monitors a first intensity of a reference signal and a second
intensity of a drop signal. A reference-frequency determining unit
determines, based on the first intensity, a first frequency of an RF
signal that causes the AOTF to output the reference signal. A temperature
detecting unit detects a temperature of the AOTF. A frequency calculating
unit calculates a second frequency of an RF signal that causes the AOTF
to output a drop signal of a desired wavelength. A control unit controls
the RF-signal generator to generate the RF signal of the second frequency
calculated.