Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69371

How to generate an ideal sine wave from an inputted sine wave?

$
0
0

I have a sine wave that is being inputted, and would like to generate a perfect sine wave that match the inputted sine wave, and then be able to compare them. I'm having an issue getting the frequency correct on the generated signal. The inputted signal is not time based, but rather sample based. It takes a total of 8192 samples, over a full 360 degree revolution, and have anywhere from 2 cycles up to 128 cycles over that time. My initial thought was to do : Average_amplitude*Sine((360/8192)+x)) where x starts at 0. Having that run for 8192 loops gives me a created signal with a frequency that is too high. I've been playing around with this and trying all kinds of combinations I can think of, but can't just can't get the right combo.


Viewing all articles
Browse latest Browse all 69371

Trending Articles