I don’t understand why this is failing:

Traceback (most recent call last):
File “./”, line 184, in
tb = top_block(options)
File “./”, line 97, in init
1, bw, -7.0, 7.0, 150, firdes.WIN_HAMMING, 6.76))
line 2729, in band_pass
return _gnuradio_swig_py_general.firdes_band_pass(*args, **kwargs)
IndexError: gr_firdes check failed: 0 < fa <= sampling_freq / 2

When I specify negative frequencies, it does this.

I thought that with a complex filter, I could specify negative

This particular filter is a decimating filter that is decminating from
500KHz sample rate down to 32KHz sample rate,
with cutoff between -7KHz and +7KHz. But I’m triggering this error,
and I don’t understand why. This is from
a GRC flow-graph.

Marcus L.
Principal Investigator, Shirleys Bay Radio Astronomy Consortium

On Wed, May 13, 2009 at 03:40:31PM -0400, Marcus D. Leech wrote:

return _gnuradio_swig_py_general.firdes_band_pass(*args, **kwargs)

and I don’t understand why. This is from
a GRC flow-graph.

Just use a low pass (0 … 7k). No need for the bandpass.
firdes_band_pass (and the lowpass for that matter) design real filters
coeffs that you can use with gr.fir_filter_ccf.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs