We design a kind of automatic non-contact measurement of railway track vibration device ,which bases on the principle of linear Array CCD sensor and uses the technology of FPGA/CPLD and EPP .The device sets on the rail and roadbed.This system is composed of CCD device, lamp-house ,computer and other aids.We use EPM7128 in the circuit. The device has the advantages of stable ,quick testing and high resolution.The measure range of swing is 0.1~200 mm,and the measure precision is 0.1 mm.