An automatic control system for an electrosurgical generator is herein disclosed. The automatic control system includes voltage and current sensing circuits, a processing circuit, an output determining circuit, and a control circuit. Samples of the voltage and current outputs are supplied to the processing circuit and the output determining circuit to generate an output signal. The output signal is compared to a reference signal to generate a feedback signal for controlling a drive circuit.