Operation of power supply and function generator