07-03-2014 07:43 AM - edited 07-03-2014 07:43 AM
Hello,
I am trying to bandpass filter a pulse signal that was sampled at 500 Hz, but there is some transient DC response at the beginning of the filter (as shown in the attached image) and rest seems to be filtered. So, I am trying to implement a solution from this
but unable to correct the errors in the vi.
Also I wanted to remove the DC offset form the signal so I am implementing this http://digital.ni.com/public.nsf/allkb/C1F39233BD94F2F08625736B00593E22 but got errors with this as well.
Someone help me out in correcting the errors in the vi.
Can suggest if this is the right to correct the filter response or can be implemented with any other methods.
Thanks.
07-03-2014 08:11 AM
hi ,
well for starters the output of the filter vi is an array and you are trying to put it in a VI which takes wavform as an input. I would suggest to use functions>waveform> buildwaveform and move from there . remember wavaform has three componets the amplitude Y , the start time D0 and the delta time dt . In your case make dt equal to sampling time.
Best Regards
07-03-2014 08:33 AM
Hi nolsqn,
I am still not clear of 1)what should be given as inputs from filter output to the Build waveform inputs: waveform,Y, dt to get it output to the Index Array.2)How to see the output of filter in a graph and how to give it as input to Averaged DC-RMS.vi
Can I get help with this.
Thanks.
07-03-2014 11:16 AM
Hi,
Can anyone help me out in correcting the wiring errors.
07-03-2014 12:26 PM
Hello,
Can someone help me otu in fixing the errors.
Thanks.
07-03-2014 12:31 PM - edited 07-03-2014 12:31 PM
My, but aren't we impatient...
If you have code that has broken wires, trying to run it will open a window listing the errors and what is wrong. If the code is runnable, what are the error you are seeing?
Mike...
07-03-2014 12:44 PM
Hi Mike,
I am not sure whether the current trying method will work to remove the transient response from the fitler output?But While implementing I got these wiring errors which I am unable to correct.
Thanks.
07-03-2014 02:32 PM
Hello,
Here is the solution for this thread which is also a good soltuion to remove the transient response of the fitler.
Hope someothers can benefit from this filter problem.
But only thing I am unable to get is to find the frequencies present in the signal because the I need to adjust the 'fl' and 'fh' frequencies for the bandpass filter filter.
I tried as shown in the attched vi. but it is showing as '39 m'.I am not sure of this.
Can someone explain a way to find the range of frequencies present in my input signal.
Thanks.