[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Getting the max amplitude of an FFT plot (FFT sin
Re: [Discuss-gnuradio] Getting the max amplitude of an FFT plot (FFT sink)
Mon, 29 Jun 2009 02:48:45 -0700 (PDT)
Anthony Hsu wrote:
> I am trying to write a simple program that changes the TX frequency in
> response to some RX stimulus. I want the TX frequency to change if any
> of the RX signal in a band I am monitoring exceeds a threshold amplitude.
> My problem is I don't know how to get the amplitude of the RX signal in
> FFT plot. The "peak hold" option saves the max amplitude at every
> across the band you are monitoring, so if you could access the amplitude
> values of these saved peaks, you could find the max amplitude and test if
> exceeds the threshold amplitude. But I don't know where (what variables
> what function) the peaks are saved. Could somebody point me in the right
> Best regards,
> Discuss-gnuradio mailing list
I'm working on a similar project, and with some minor alterations to
usrp_spectrum_sense.py you should be able to get peaks from the fft sink.
For more info on the coding, please see Firas excellent explanation:
View this message in context:
Sent from the GnuRadio mailing list archive at Nabble.com.