This paper introduces a testing mothod about hydroturbine governing system based on dSPACE hardware-in-the-loop-simulation. PID parameters are adjusted by hardware-in-the-loop -simulation. The results of the simulation show that it can provide simple, intuitive simulation model, and make parameters adjusting more intuitive and easier. The validity of the testing platform have been testified by the results of real-time simulation and hardware-in-the-loop-simulation. The superiority of controldesk in the real-time simulation is prominent.