diff options
author | Tom Rondeau | 2012-02-28 16:02:16 -0500 |
---|---|---|
committer | Tom Rondeau | 2012-02-28 16:02:16 -0500 |
commit | 3d3d3c05291aebb1ad90d22f9674546347cb96d6 (patch) | |
tree | f6adc290927d6cd7ef7ba5cb0a92c0cd463dbc9a /gnuradio-examples/python/pfb/channelize.py | |
parent | d15bed21e08f97b0ac510b49124c9231289820c2 (diff) | |
download | gnuradio-3d3d3c05291aebb1ad90d22f9674546347cb96d6.tar.gz gnuradio-3d3d3c05291aebb1ad90d22f9674546347cb96d6.tar.bz2 gnuradio-3d3d3c05291aebb1ad90d22f9674546347cb96d6.zip |
core: pfb channelizer: can now set a channel map to direct the channels to a specific output stream.
Now, not all output channels must be connected; can connect M of N channels (M <= N) and use the channel_map to set which channel from the original wideband signal go to which output streams.
Diffstat (limited to 'gnuradio-examples/python/pfb/channelize.py')
-rwxr-xr-x | gnuradio-examples/python/pfb/channelize.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gnuradio-examples/python/pfb/channelize.py b/gnuradio-examples/python/pfb/channelize.py index 999e5d20e..2fcb14a36 100755 --- a/gnuradio-examples/python/pfb/channelize.py +++ b/gnuradio-examples/python/pfb/channelize.py @@ -68,7 +68,7 @@ class pfb_top_block(gr.top_block): self.head = gr.head(gr.sizeof_gr_complex, self._N) # Construct the channelizer filter - self.pfb = blks2.pfb_channelizer_ccf(self._M, self._taps) + self.pfb = blks2.pfb_channelizer_ccf(self._M, self._taps, 1) # Construct a vector sink for the input signal to the channelizer self.snk_i = gr.vector_sink_c() @@ -77,6 +77,9 @@ class pfb_top_block(gr.top_block): self.connect(self.add, self.head, self.pfb) self.connect(self.add, self.snk_i) + # Use this to play with the channel mapping + #self.pfb.set_channel_map([5,6,7,8,0,1,2,3,4]) + # Create a vector sink for each of M output channels of the filter and connect it self.snks = list() for i in xrange(self._M): |