Text this: Simulation of automatic frequency and power regulators