LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating a beep

Hi all, .... I want to generate a beep on Labwindows not from the internal Speaker ( not by using startPCSound() ) on motherboard but in such a way that it could be heard on Head Phones and the frequency or volume of the beep can also be contrrolled....... I have also seen the two audio examples on SDK that are shipped with CVI 2009 but i didn't understand...... Can anyone please edit any of these examples to make the application that i want?..... Does anyone have an idea of doing it?...... Any example of this will be greatly appreciated. Hi all, .... I want to generate a beep on Labwindows not from the internal Speaker ( not by using startPCSound() ) on motherboard but in such a way that it could be heard on Head Phones and the frequency or volume of the beep can also be contrrolled....... I have also seen the two audio examples on SDK that are shipped with CVI 2009 but i didn't understand...... Can anyone please edit any of these examples to make the application that i want?..... Does anyone have an idea of doing it?...... Any example of this will be greatly appreciated.
0 Kudos
Message 1 of 2
(2,938 Views)

Hi mhs100,

 

With CVI, you have the capability of generating a beep sound or playing a .wav file. Using the Windows Beep() function would likely be the simplest solution for your matter -- and you can check out an example with this function here.  You can definitely adjust the frequency and the duration of the beep, but I do not believe you can change the volume.  You can read more about the Windows Beep Function here.

 

Regards,

 

Stephanie R.

National Instruments

Stephanie R.
National Instruments
0 Kudos
Message 2 of 2
(2,892 Views)