[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Is that possible combining usrp_fft.py and usrp_s
From: |
Firas A. |
Subject: |
Re: [Discuss-gnuradio] Is that possible combining usrp_fft.py and usrp_spectrum_sense.py to do spectrum analysis and observe in GUI in a wider frequency range? |
Date: |
Mon, 10 Dec 2007 21:27:42 -0800 (PST) |
Eric Blossom wrote:
>
> On Mon, Dec 10, 2007 at 06:38:49PM -0800, Brook Lin wrote:
>>
>> I have figured out why it failed to set freq. Now my question is still
>> how
>> can I get one GUI with one plot and show all the spectrum, say all FM
>> stations.
>>
>> Thanks
>
>>Brook, you'll have to look at the code and figure this out yourself.
>>If you have a more specific question, please ask it.
>>
>>Eric
>
> Hi,
>
> I think there is a bug in usrp_spectrum_sense.py code. The bug is in
> calculating the maximum center frequency.
> The used equation is :
> self.max_center_freq = self.min_center_freq + (nsteps * self.freq_step)
>
> while the correct equation should be :
> self.max_center_freq = self.min_center_freq + ((nsteps-1) *
> self.freq_step)
>
> Example :
> using usrp_spectrum_spense.py :
>
> if :-
> min_freq = 5MHz, max_freq = 30MHz, usrp_rate = 8MHz,
>
> then :-
>
> freq_step = 0.75 * 8 = 6MHz
> nsteps = math.ceil(( 30 - 5 ) / 6 ) = 5
> min_center_freq = 5 + 6/2 = 8MHz
> max_center_freq = 8 + 5*6 = 38MHz (which is too high)
>
> Regards,
>
> Firas,
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
--
View this message in context:
http://www.nabble.com/Is-that-possible-combining-usrp_fft.py-and-usrp_spectrum_sense.py-to-do-spectrum-analysis-and-observe-in-GUI-in-a-wider-frequency-range--tp14183248p14268203.html
Sent from the GnuRadio mailing list archive at Nabble.com.