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

2009-03-11 Thread Eric Blossom
On Wed, Mar 11, 2009 at 06:45:02AM -0700, David Adrian wrote: > Thank you for the replies Eric! > > 1.You > said about using file_sink , but in my case I do not think that will > work because I need to make real time precessing of the signal. If I > use files it will take to long. > 2. My theses

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

2009-03-11 Thread Tom Rondeau
On Tue, Mar 10, 2009 at 6:33 AM, Adi85 wrote: > > 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) >

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

2009-03-11 Thread David Adrian
Thank you for the replies Eric! 1.You said about using file_sink , but in my case I do not think that will work because I need to make real time precessing of the signal. If I use files it will take to long. 2. My theses is about simulating the acquisition of 2 signals (co-polar and cross-polar )

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

2009-03-10 Thread Eric Blossom
On Tue, Mar 10, 2009 at 10:48:10AM -0700, David Adrian wrote: > Thanks for the reply Eric, here is what I have now: > > #!/usr/bin/env python > > from gnuradio import gr, gru, window > from gnuradio import usrp > > from gnuradio.wxgui import stdgui, fftsink, scopesink > import wx > > class topB

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

2009-03-10 Thread David Adrian
Thanks for the reply Eric, here is what I have now: #!/usr/bin/env python from gnuradio import gr, gru, window from gnuradio import usrp from gnuradio.wxgui import stdgui, fftsink, scopesink import wx class topBlock(gr.top_block):     def __init__(self):         gr.top_block.__init__(self)    

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

2009-03-10 Thread Eric Blossom
On Tue, Mar 10, 2009 at 03:33:32AM -0700, Adi85 wrote: > > 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.blackman

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

2009-03-10 Thread Adi85
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) > >sign

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

2009-03-09 Thread Dimitris Symeonidis
On Mon, Mar 9, 2009 at 17:22, Adi85 wrote: > > > Ok..here is my code and my error message: > > class topBlock(gr.top_block): >    def __init__(self): >        gr.top_block.__init__(self) > >        fftsize = 4096 >        udecim = 256 > >        mywin = window.blackmanharris(fftsize) >        fft

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

2009-03-09 Thread Adi85
Ok..here is my code and my error message: class topBlock(gr.top_block): def __init__(self): gr.top_block.__init__(self) fftsize = 4096 udecim = 256 mywin = window.blackmanharris(fftsize) fft = gr.fft_vcc(fftsize, True, mywin) signal = usrp.s

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

2009-03-09 Thread Eric Blossom
On Mon, Mar 09, 2009 at 08:34:50AM -0700, Adi85 wrote: > > Hello! > > Here is what I would like to do: I want to use spectrum_sense.py in order to > detect the amplitude of the maximum power bin from a bandwidth of about 7 > khz centered to 10.7Mhz and then display the result. I do not need to ch

[Discuss-gnuradio] Spectrum_sense of a smaller banwidth

2009-03-09 Thread Adi85
Hello! Here is what I would like to do: I want to use spectrum_sense.py in order to detect the amplitude of the maximum power bin from a bandwidth of about 7 khz centered to 10.7Mhz and then display the result. I do not need to change the RF center frequency. What should I take out of the code ac