discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Spectrum_sense of a smaller banwidth


From: Adi85
Subject: Re: [Discuss-gnuradio] Spectrum_sense of a smaller banwidth
Date: Tue, 10 Mar 2009 03:33:32 -0700 (PDT)

Still getting an error!
thank you in advance

class topBlock(gr.top_block):
>    def __init__(self):
>        gr.top_block.__init__(self)
>
>        fftsize = 256
>        udecim = 256
>
>        mywin = window.blackmanharris(fftsize)
>        fft = gr.fft_vcc(fftsize, True, mywin)
>
>        signal = usrp.source_c(0,udecim)    # signal from Basic RX,
> decimation=256
>        v_sink = gr.vector_sink_c()
>
>        self.connect(signal, fft, v_sink)
>
>        # Do stuff with v_sink.data()
>        print v_sink.data()
>
 if __name__ == "__main__":
>    print "Initilizing.."
>    tb = topBlock()
>    print "Flowgraph start.."
>    tb.start()
>    print "Exiting.."


but i get the same error:

ValueError: itemsize mismatch: usrp1_source_c(2):0 using 8,
fft_vcc_fftw(1):0 using 2048


the value 2048 depends of the fft size 2048=8*256

thank you very much!

-- 
View this message in context: 
http://www.nabble.com/Spectrum_sense-of-a-smaller-banwidth-tp22413464p22431572.html
Sent from the GnuRadio mailing list archive at Nabble.com.





reply via email to

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