Tester of rail state

A rail state tester is disclosed. Its infrared light source and linear-array CCD receiver are installed to inside of wheel axle box. Its acceleration sensor is fixed to said wheel axle box. A rail test unit board is arranged on the TAX2 platform in the safety tester. The said receiver and sensor are connected with said rail test unit board via A/D converter. The relative information of TAX2 platform is acquired by said rail test unit board and then processed and analyzed by a software to determine the position of non-flat rail segment and its relative parameters.