You left out the most important part if you want any detailed help. Namely, what is the make and model for your power supply. You can go to http://sine.ni.com/idnetwork/ and search for a driver for the instrument. You should also have a programming manual for it. With the manual, you can write your own program with VISA Writes and Reads or use the Instrument I/O Assistant.