12-23-2015 10:28 AM
I am trying to use the vi "FFT Spectrum (Mag-Phase) VI", and I made a sample program to test it out, but I have encountered a problem regarding the scaling that I am confused by. The LabVIEW program is attached. In this program I create two sine waveform generators of ampltude 1 and with two different frequencies (20 and 30 Hz), and I append them together before sending them into the FFT vi. My problem is that I don't understand the output in the amplitude spectrum graph. It shows two peaks situated at the right frequencies, but their amplitudes aren't what I was expecting. The amplitude of the peaks are about ~0.35, but I was expecting them to both be 1 since I was inputing two sine waves with amplitude 1. Obviously the scaling is wrong, but I don't understand why. How do I correct this? Also, lets say I append together 20 sinewaves instead of two as in the example shown or instead input some generated noise. How would I scale the resuts so that everything would result with the expected amplitudes I was expecting?
12-23-2015 12:00 PM
I assume you know that "Append Waveform" sticks the second Waveform on the end of the first, generating a single Waveform whose length is the sum of the two lengths. Were you trying to add the Waveforms to get a single waveform with both signals appearing "on top of" each other?
I also noticed you didn't plot the signal, but only the spectrum. If you had, you would probably see the problem, yourself.
Bob Schor
12-23-2015 12:28 PM
In addition to waht Bob already mentioned:
12-23-2015 12:57 PM - edited 12-23-2015 12:58 PM
OK, here are a few tips:
Here's a very simple example how it could look like.