Re: Wideband Spectrum Analyzer

I obtain this plot from 2.23GHz to 2.90GHz (with a Flex2400) but I
don’t know how to put the correct frecuency on the x axis.
Because if I put this:
g(‘set xrange[2230000000:2900000000]’) # I can’t see anything!

To plot I have done this:

g = Gnuplot.Gnuplot(debug=1) # Out of the while loop

g.plot(m.data) # Inside the while loop

Please help me as soon as possible and thanks in advance!

Regards,

Santiago Ortega.

USRP_SPECTRUM_SENSE.PY

How can I use the self.max_freq and self.min_freq like a global
variable?
I want to use it in the def main_loop(tb):
but if I use it

That’s the given error:
Traceback (most recent call last):
File “./spectrum_output.py”, line 309, in
main_loop(tb)
File “./spectrum_output.py”, line 246, in main_loop
print min_freq, max_freq
NameError: global name ‘min_freq’ is not defined

I tried to put
max_freq = self.max_freq
min_freq = self.min_freq

in the
class my_top_block(gr.top_block):

def __init__(self):
    gr.top_block.__init__(self)

where it’s the first time it’s used.

On Tue, Oct 28, 2008 at 11:43:15AM +0000, Santi O. wrote:

USRP_SPECTRUM_SENSE.PY

How can I use the self.max_freq and self.min_freq like a global
variable?
I want to use it in the def main_loop(tb):
but if I use it

Please see the Python tutorial. It and lots of other good stuff can
be found here: Our Documentation | Python.org

Eric