LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Distortion when playing a tone using the example Generate Sound.vi

Hi.

I need to make an application that can play a continuous pure tone using the computers sound card. Luckily there is an example that does just that, the Generate Sound.vi. Or so I thought. When I start the application, with the following settings: Waveform Type: Sine, Number of Samples/ch: 5000 and Frequency: 1000, the tone starts of fine, but after a while the tone starts to click. To document this problem I tried to record the tone using the Sound File Write.vi, but the recorded tone played fine. Why is this, and how can I modify the example to play a continuous pure tone without any distortions?

 

I have tried to increase the buffer by increasing the variable “Number of Samples” and it seems to help. I still get some distortions, but not so frequently.

0 Kudos
Message 1 of 1
(2,541 Views)