Hipot tester control code for High Voltage Safety