[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] mc4020 + microtune -- ValueError: source and dest
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] mc4020 + microtune -- ValueError: source and destination data sizes are different |
Date: |
Thu, 27 Jan 2005 00:22:54 -0800 |
User-agent: |
Mutt/1.5.6i |
On Wed, Jan 26, 2005 at 07:42:42PM -0500, Ilia Mirkin wrote:
> Jamie and I are working on this together, but for the benefit of the
> list, here is what the problem was:
>
> (after familiarizing myself with the gnuradio internals and looking at a
> bunch of other examples)
>
> fftsink takes a complex. the mc4020 puts out a short. there is a
> short_to_float conversion going on (that's the "cvt" in the code), and
> float != complex, hence the ValueError.
As Matt pointed out, there's a make_fft_sink_f and make_fft_sink_c
A quick look at fftsink.py reveals this:
# ========================================================================
# returns (block, win).
# block requires a single input stream of float
# win is a subclass of wxWindow
def make_fft_sink_f (fg, parent, label, fft_size, input_rate):
[snip]
# ========================================================================
# returns (block, win).
# block requires a single input stream of gr_complex
# win is a subclass of wxWindow
def make_fft_sink_c (fg, parent, label, fft_size, input_rate):
[snip]
use make_fft_sink_f once you've got a stream of floats...
> BTW, my port of the mc4020 driver to 2.6 causes massive memory
> corruption - seems to make python croak a lot of the time, as well as
> gcc. If anyone has something that works better than that, please let me
> know or post a link.
Meenal, can you give us any update on on the mc4020 patch for 2.6?
Eric
- Re: [Discuss-gnuradio] Error while compiling Gnuradio 2.3 from CVS, (continued)
- Re: [Discuss-gnuradio] Error while compiling Gnuradio 2.3 from CVS, Eric Blossom, 2005/01/11
- Message not available
- [Discuss-gnuradio] Re: mc4020 driver for 2.6 (1 of 3), Meenal, 2005/01/18
- [Discuss-gnuradio] Re: mc4020 driver for 2.6 (1 of 3), Eric Blossom, 2005/01/18
- Re: [Discuss-gnuradio] Re: mc4020 driver for 2.6 (1 of 3), Ilia Mirkin, 2005/01/18
- [Discuss-gnuradio] mc4020 + microtune -- ValueError: source and destination data sizes are different, James Cooley, 2005/01/18
- Re: [Discuss-gnuradio] mc4020 + microtune -- ValueError: source and destination data sizes are different, Eric Blossom, 2005/01/19
- Re: [Discuss-gnuradio] mc4020 + microtune -- ValueError: source and destination data sizes are different, Ilia Mirkin, 2005/01/26
- Re: [Discuss-gnuradio] mc4020 + microtune -- ValueError: source and destination data sizes are different, Matt Ettus, 2005/01/26
- Re: [Discuss-gnuradio] mc4020 + microtune -- ValueError: source and destination data sizes are different,
Eric Blossom <=
- Re: [Discuss-gnuradio] mc4020 + microtune -- ValueError: source and destination data sizes are different, Meenal, 2005/01/27