A program was written based on the software of LabVIEW, through which the Windows API function was called and the control of output voltage of sound card was realized. The program can be used as a subroutine conven- iently and can meet the requirement of controlling output voltage of sound card in some testing work.