In the first session the fans vibration on - line monitoring system is realized with vc language , also compile auto power spectrum density function , cross power spectrum density function , autocorrelation function and cross correlation function etc spectral analysis function to carry through simple offline fault diagnosis