Programmatically Control the PC Volume in LabVIEW

Updated Jun 1, 2018

Reported In


  • LabVIEW

Issue Details

I want to write a VI that allows me to programatically change the volume of a waveform output device on my PC, including the ability to mute or un-mute my PC. How can I do this in LabVIEW?


To control the volume of your PC you will need to use a Call Library Function Node to call the winmm.dll in LabVIEW. This Dynamic Link Library (DLL) can be found on your computer under Windows >> System32 >> winmm.dll. The function waveOutSetVolume allows you to set the volume level of the specified waveform-audio output device. 

Additional Information

The following article has additional information about configuring a Call Library Function Node in LabVIEW. For more information about the different functions available in this DLL or the input parameters, refer to Microsoft's Waveform Functions help documentation.


Not Helpful