Take the 2-minute tour ×
Signal Processing Stack Exchange is a question and answer site for practitioners of the art and science of signal, image and video processing. It's 100% free, no registration required.

Apologies if this is too basic.

I need to implement a band-pass filter, for a realtime system. Not sure what to use. FIR? IIR? Something else ?

Any tips would be highly appreciated.

share|improve this question
1  
What do you mean by real-time? Please provide the maximum allowable delay, sampling frequency, and filter requirements. All these are interdependent. –  Juancho Dec 27 '12 at 12:14
    
Sampling frequency 512Hz. Filter 1Hz-30Hz and as minimum delay as possible. It's EEG data BTW. Thanks @Juancho! –  Dov Dec 27 '12 at 12:59
add comment

1 Answer

up vote 4 down vote accepted

For an EEG signal, I suppose you need to keep the shape of the signal. Therefore the filter should have linear phase, so the reasonable way to go is a FIR filter.

If shape (transients) don't matter much for your application, then an IIR filter would be preferable since it will give less end-to-end delay in general.

Note that suprressing 0 - 1 Hz, inevitably gives a group delay of at least 1 second, depending on how sharp the transition should be, so your real-time requirements may conflict with the start frequency.

You may try some filter design tools (e.g. from matlab) to find a reasonable compromise between frequency response and group delay.

share|improve this answer
    
Could you please elaborate a bit about the "group delay problem" you have mentioned, not 100% sure why it's happened (I Probably missing something very basic ) Thanks this is all very helpful! –  Dov Dec 27 '12 at 22:46
    
Could you please elaborate a bit about the "group delay problem" you have mentioned, not 100% sure why it's happened (I Probably missing something very basic ) Thanks this is all very helpful! –  Dov Dec 28 '12 at 10:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.