The principle of an adaptive optics system for correcting dynamic wavefront errors in real-time is introduced. This system consists of a 21-element deformable mirror, a lateral shearing interferometer and a parallel electronical control system. The experimental results show that it can effectively compensate dynamio wavefront errors with a bandwidth of 300Hz.