The Fourier spectrum of a periodic signal may be obtained by fast Fourier transform algorithms, but, as is well known, special care must be taken to avoid severe distortions introduced by the sampling process. The main problem is the leakage generated by the truncation required to obtain a finite length sampled data. The usual procedure to reduce leakage is to multiply the sampled signal by a weighting window. Several kinds of windows have been proposed in the literature, and today they are also included in many commercial instruments. A simple alternative procedure is proposed in this paper. It is implemented with a PC compatible data acquisition board (DAQ) and consists of an algorithm that uses decimation and interpolation techniques. This algorithm is equivalent to the use of an adjustable sampling frequency and correspondingly an adjustable window size. Results obtained by this method on both harmonic and polyharmonic signals are empirically analyzed and compared with those given by an instrument with built-in FFT capabilities.