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!
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):