LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to generate a continuous sine signal to sound card output with volume control

I need to create a vi to generate a sine wave signal to sound card with Labview 8.5.
 
there is an example written with lvsound2.llb for it. but the volume control sucks. it has only 0~100 integer control and is not accurate enough for my application.
 
some one mentioned Contineous Sound Output.vi in Example search. But I could not find it any more in Labview 8.5.
 
Anyone could help? Appreciate it.
0 Kudos
Message 1 of 3
(3,728 Views)
Look at the Generate Sound.vi in the examples in the sound2.llb.  It uses the volume that you don't like, but you can also vary the amplitude of the sine wave being generated.  They have the amplitude set to 1, but if you change the 1 to a control, then you can leave the volume setting contsant and change the volume of the sine wave being generated by varying amplitude of the sine wave.
0 Kudos
Message 2 of 3
(3,705 Views)

Dumbhead wrote:
there is an example written with lvsound2.llb for it. but the volume control sucks. it has only 0~100 integer control and is not accurate enough for my application.

Could you please explain in greater detail what you mean by "the volume control sucks"? The volume control is a Double Precision Float data type not an Integer. By accuracy, do you mean that you are trying to get greater precision? If you mean that the example simply is not loud enough at the maximum volume, you can increase the amplitude of the sine wave. I hope that helps!
0 Kudos
Message 3 of 3
(3,696 Views)