The control system research of X-ray generator in medical diagnostic