[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: Matt Ettus
Subject: Re: [Discuss-gnuradio] mc4020 + microtune -- ValueError: source and destination data sizes are different
Date: Wed, 26 Jan 2005 16:57:13 -0800
User-agent: Internet Messaging Program (IMP) 4.0-cvs

Quoting Ilia Mirkin <address@hidden>:

> 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.
> My solution to this was to add a float_to_complex block in there, and
> that seemed to make python happy. It didn't seem to read data in, but
> this could be due to about 1000 different things that I will be
> investigating later on.

There is an fftsink that takes floats also.  Use make_fftsink_f.  f is float, c
is complex, s is signed short, i is signed int.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]