Design and experimental implementation of real time closed loop control of plasma processes