08-27-2015 11:45 PM
Hi,
I used sine function inside the while loop and generated continuous sine wave with sampling frequency 10000Hz.
The output I connected to the graph chart and loudspeaker.
The graph chart looks fine and I have output sound from loudspeaker, but it is not sound like correct frequency I want. For example 100Hz, 300Hz, 500Hz.
What is wrong in my code?
Thank you
08-28-2015 12:43 AM
08-28-2015 01:14 AM
08-28-2015 01:17 AM
Hi Mike.
I am using NI myRIO-1900 analog out port. It looks like multiple frequncies or some kinda distortion, not sure.
08-28-2015 01:18 AM
Hi Dennis,
Yes, I think that is the problem. How I can solve the problem. should I use timed loop instead?
08-28-2015 01:49 AM
Here is the timed loop sine wave. The sound it much better. But there is some background noises.
In youtube there are some 1000Hz test sounds, and when I play them with loudspeaker, the sound is pure, and only one sound with one frequency. When I use my code, the sound had some other elements. not sure what it is.
How I can generate pure sound with single tone without background noises?
Thank you
08-28-2015 05:33 AM