A method and circuit is disclosed for providing a control signal to a laser cavity controller. The cavity has two completely reflective surfaces. A long lived laser medium stores energy within the cavity. A computer generated waveform generated from enough values to appear substantially smooth after being amplified is provided to a control circuit having a Pockets cell or a Bragg cell. By controlling the amplitude of the computer generated waveform, the output pulse of the laser cavity is controlled.