The invention discloses a programmable trouble power simulator which is characterized in that the programmable trouble power simulator consists of an incoming line reactor, an LC (
inductor-
capacitor) filter, a direct-current 
bus capacitor, a 
voltage hall sensor, a current hall sensor, a rectification-side 
current transformer, an inversion-side 
current transformer and a direct-
current voltage limiting protection circuit. An upper computer sends driving 
signal commands to a DSP (
Digital Signal Processor) to control the work of a rectification-side 
current transformer and an inversion-side current 
transformer respectively. The programmable trouble power simulator can realize the 
simulation of various 
power grid failures such as symmetrical and unsymmetrical 
power grid voltage sag, unbalance three-phase circuits, 
harmonic distortion, 
frequency shift, 
phase angle hopping, 
voltage fluctuation and the like, and the parameters such as the 
voltage sag amplitude, the 
phase number, the unbalance three-phase circuit degree, 
harmonic times and proportion, the frequency shifting amplitude and direction, the 
phase angle changing size and property, 
voltage fluctuation trends and the failure lasting time and the like all can be adjusted flexibly. The programmable trouble power simulator can be used as a testing device for researching a 
wind power generation 
system and examining the 
delivery performance, or is used as a trouble power device for testing the performance of other grid-tied power 
electronic equipment.