The control method is an important part of the fault injection studies. PID controller was introduced into the hydraulic system, the parameter was established using MATLAB/Simulink simulation, the results proved that PID control could improve the system performance effectively. Then the hydraulic system simulation model based on PID control was established using AMESim software. Hydraulic cylinder fault injection was realized through parameter settings. Conclusions were obtained which were required through a lot of experiments before.