Program to control voltage source.