LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

remove a sinewave component from a combined signal

i have the following setting for testing,

input signal 1: 50Hz sinewave, amplitude 10V
input signal 2: 800Hz sawtooth wave, amplitude 1V

the above 2 signals was added together and fed into a filter. My objective is to remove the sinewave, i had tried with some filters but nothing seems to work. what should i take note when doing filtering?

why is that i get 2 different filter output when i set the cutoff frequency to 100Hz and 700Hz, since only the 50Hz component is filtered off.The worst thing is that the sinewave is still there when the cutoff was set to 100Hz as can be seen in the vi attached.

and why is the amplitude attenuated by so much?
0 Kudos
Message 1 of 2
(2,481 Views)
Careful. Make sure that you filter the time domain signal, not the frequency domain version. Also, make sure your sampling rates match (Sampling Info cluster Fs should be the same as the filter sampling freq - I recommend using Unbundle by Name and wiring the Fs output from there to the filter VI) so that all frequencies can be in Hz (frequency, frequency 2, and the filter's stop and high frequency).
0 Kudos
Message 2 of 2
(2,481 Views)