I'm trying to pass 2000 taps to the fft filter in gnuradio. How can i read file and pass it to the fft filter tap filed?
This cannot be done. However you can use the Filter Taps
variables available in the GRC
to produce the desired taps at the initialization of your flowgraph. Pass the ID
of the variable at the taps
field of your FFT filter
block and you are done.
If your taps are very specific and cannot be constructed from the available filter taps variable, you could possibly edit the generated python file and use a python array to store them.
EDIT: As @Marcus noted you can use numpy
to load taps from a file. Just use the Import
element from the GRC
to import numpy
and then using a Variable
element, use numpy.fromfile('filename')
to load the desired taps.