LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

need a simple VI to convert voltage into sound

I have NI DAQPad 6052 and I need a VI that converts the voltage I read from channel0 into a sound that is proportional to the voltage amplidute.
0 Kudos
Message 1 of 4
(3,893 Views)
amiliotis;

You can generate a sine wave and generate a sound. Vary the frequency of the sine wave depending on the voltage. There are two examples included with LabVIEW that shows you how to generate sounds with the sine VI (Simulate a Telephone and Generate Morse Code)

I am attaching an example. I create it in a couple of minutes, so make sure you test it and understand what is going on. It should give you a start.

Regards;
Enrique
www.visecurity.com
www.vartortech.com
Message 2 of 4
(3,893 Views)
Hi,

For conversion of voltage to proportional sound, you can employ Vi put in LV function pallete-> Graphics & Sound -> sound -> SO Volume.vi.

In this vi, there are 2 input (Left & Right),feed your scaled voltage to both Left & Right inputs.

Before using SO volume.vi, offcourse you need to put other vi for initialization & configuration of sound output. These Vi can be taken from Sound-> Sound Output pallete.

Hope this helps. Your feedbacks are welcome.

Best Regards,
Nirmal
0 Kudos
Message 3 of 4
(3,893 Views)
cool
------------------------------------------------------------------
When you feel sad, laugh
0 Kudos
Message 4 of 4
(3,893 Views)