LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there anyway to control volume of PC in Labview?

I want to control sound card volume using Labview. Is there anyway to do that?
Thanks for your help.

Sheetal
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 1 of 5
(5,030 Views)
Salutations,
Sound Section Capabilities

SO Volume (Windows, Mac OS, Not in Base Package)
Sets the volume of the sound output device. You specify the volume with a 16-bit unsigned integer in left channel and right channel where 0 indicates minimum and 65535 indicates maximum.

Now I'd imagine needing to do more than that

I believe this is what you need.

Sincerely,
ElSmitho
Message 2 of 5
(5,015 Views)
Thanks for the reply.
This would control music I am playing but does it control volume of the sound card? I want just like we control volume from system tray.
Sheetal
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 3 of 5
(5,005 Views)
You need to interface to the Multimedia API by using the waveOutSetVolume function. You can also use the function waveOutGetVolume() to read the current volume settings.

You can find more information about this here: -
http://support.microsoft.com/default.aspx?scid=kb;en-us;118377
0 Kudos
Message 4 of 5
(4,982 Views)
hi,
This control may just help you in what u want to do.
cheers
vicky
0 Kudos
Message 5 of 5
(4,961 Views)