LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Output a sine wave to a PC speaker

Solved!
Go to solution

Hi,

 

I am trying to generate a sine wave and output it to a PC speaker. It works ok, but I can hear breaks in the sound, perhaps at the end of the sample size. Is there a way to avoid such an issue. Attached is the VI.

 

Thanks. 

0 Kudos
Message 1 of 4
(3,461 Views)

The problem is that you are using an express VI that load a sound, starts generation and at the end stops generation - each time its called. There is also some processing of the data that the express VI redoes each time it's called.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 4
(3,438 Views)

Sorry I can't open your vi since I am using LV2011.  Did you try the generate sound example: Generate Sound.vi  This plays (at least what sounds like to me) a smooth sinewave on my computer.

 

C:\Program Files (x86)\National Instruments\LabVIEW 2011\examples\sound2\sound2.llb\Generate Sound.vi

 

-SS



0 Kudos
Message 3 of 4
(3,420 Views)
Solution
Accepted by topic author SysB1

Thanks. I came across this one and used it. It works, but I wasn't sure why the other one didn't work. 

0 Kudos
Message 4 of 4
(3,399 Views)