Page 1 of 1

EditFilter Issues

Posted: Tue Aug 19, 2014 8:32 am
by bbenesch
I'm issues with the EditFilter command in my macro. Below is what I have in my code followed by the subsequent error that pops up.

EditFilter("bandpass",1,1,10,50000|,0|,1||)

Error processing this command: [EditFilter("bandpass",1,10,5000|,0|,1||)]

Any ideas on what I'm doing wrong? I removed the pipes and the macro completed but didn't actually filter...

Posted: Tue Aug 19, 2014 11:01 am
by DPlotAdmin
Remove the pipe symbols for sure. (Those are only meant to show that a parameter is optional.)

If the filter doesn't result in any changes then it is likely that the parameters you're using just don't have any effect. In your example it might mean that the entire record is already between 10 and 50000 Hz. You're welcome to send me an example data file.

Posted: Tue Aug 19, 2014 1:35 pm
by bbenesch
Got it! My data set had a sampling rate of 10kHz and when I tried to do the filter manually through the Dplot window, I was shown an error that I couldn't have a cut-off frequency over 50kHz. So I just changed the cut-off frequency to 49kHz and it worked! Thanks.

Posted: Tue Aug 19, 2014 1:35 pm
by bbenesch
Got it! My data set had a sampling rate of 10kHz and when I tried to do the filter manually through the Dplot window, I was shown an error that I couldn't have a cut-off frequency over 50kHz. So I just changed the cut-off frequency to 49kHz and it worked! Thanks.