An imminent gyrotron body current fault can now be detected and avoided in less than 10 µs using a high-resolution, real-time, high-voltage reference waveform generator with signal analyzer subroutines. The gyrotron is restarted and full power resumed in a little over 10 ms.