[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Re: Re: Read samples from two channels and write
From: |
Karthik Vijayraghavan |
Subject: |
Re: [Discuss-gnuradio] Re: Re: Read samples from two channels and write to file |
Date: |
Thu, 24 Apr 2008 10:09:46 -0700 |
On Thu, Apr 24, 2008 at 9:04 AM, George Nychis <address@hidden> wrote:
>
>
> Diana Iosifescu wrote:
>
> >
> fftsink.fft_sink_c(panel,title="ChRXB-A",fft_size=fftsize_N,sample_rate=rx_rate/sw_decim)
> > TypeError: __init__() takes at least 3 non-keyword arguments (2 given)
> > Exception exceptions.ReferenceError: 'weakly-referenced object no longer
> exists' in <bound method db_flexrf_2400_rx_mimo_b.__del__ of
> <gnuradio.db_flexrf_mimo.db_flexrf_2400_rx_mimo_b object at 0x891e28c>>
> ignored
> > I think something is wrong with the gui...
> > Maybe you know what is that ReferenceError.
> >
>
>
> This seems to be your true error:
>
>
> fftsink.fft_sink_c(panel,title="ChRXB-A",fft_size=fftsize_N,sample_rate=rx_rate/sw_decim)
> TypeError: __init__() takes at least 3 non-keyword arguments (2 given)
>
> - George
My code uses fftsink2 whereas you are using fftsink. I was a little
bit lazy when I posted the lines relating to fftsink2 since they were
kind of long. Here is the full line
self.rx_src_fft0 = fftsink2.fft_sink_c(panel,title="ChRXB-A",
y_per_div=25, ref_level=fftreflev, average=False, fft_size=fftsize_N,
sample_rate=rx_rate/sw_decim)
similarly for the other channel. make sure you have "import fftsink2"
at the top as well. Here is a link to the file that works for me
http://www.stanford.edu/~karthikv/multichannel.py
Karthik
- [Discuss-gnuradio] Read samples from two channels and write to file, Diana Iosifescu, 2008/04/23
- Re: [Discuss-gnuradio] Read samples from two channels and write to file, Brian Padalino, 2008/04/23
- Re: [Discuss-gnuradio] Read samples from two channels and write to file, Karthik Vijayraghavan, 2008/04/23
- [Discuss-gnuradio] Re: Read samples from two channels and write to file, Diana Iosifescu, 2008/04/24
- [Discuss-gnuradio] Re: Read samples from two channels and write to file, Diana Iosifescu, 2008/04/24
- Re: [Discuss-gnuradio] Re: Read samples from two channels and write to file, George Nychis, 2008/04/24
- [Discuss-gnuradio] Re: Re: Read samples from two channels and write to file, Diana Iosifescu, 2008/04/24
- Re: [Discuss-gnuradio] Re: Re: Read samples from two channels and write to file, Johnathan Corgan, 2008/04/24
- Re: [Discuss-gnuradio] Re: Re: Read samples from two channels and write to file, George Nychis, 2008/04/24
- Re: [Discuss-gnuradio] Re: Re: Read samples from two channels and write to file,
Karthik Vijayraghavan <=