discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] HELP: USRP1+WBXv3 "Overflow"


From: Thesis 2015
Subject: Re: [Discuss-gnuradio] HELP: USRP1+WBXv3 "Overflow"
Date: Thu, 5 Feb 2015 12:12:21 +0800

Hello everyone!
We have been able to modify the python file to allow the  receiver to jump from one frequency to another. We have modified it to be able to receive signals from local FM stations and jump from one frequency to another using the python file attached.
(Note:we modified it at the end part using:
tb1 = fm_example()
    tb1.Start(True)
    tb1.Wait()
    freq = freq+200e3

We have also tried to increment it by 200kHZ for all frequencies using just the same code.We tried it up to tb70 and there is a certain point(after tb33, i believe) where it says the following error.(please see attached image)
 
We would like to ask the following questions:
1.From what I understand, tb.Wait is used for waiting for the flowgraph to finish.
  WIth the code we used, we close the scope then it runs again with an incremented   frequency.
  Do you have any suggestions as to what code we can use to automatically close the
  scope so it jumps to another frequency after a certain amount of seconds(lets say 10   seconds)?
2.What causes the error in the second similar code(pls see attached image)?
Thank you very much and have a good day.
 
 


On Wed, Dec 31, 2014 at 1:17 AM, Tom Rondeau <address@hidden> wrote:
On Sun, Dec 28, 2014 at 10:13 PM, Thesis 2015 <address@hidden> wrote:
Good day.
Would it be fine if we placed a while or for loop statement under the variables section so that it would increment by 200kHz and would change to different frequencies within the FM spectrum.
If you have any other ideas that could help us, it would be greatly appreciated.

-SKA15-

As Marcus said, feel free to play with these things to figure it out. But one hint you'll probably need is that any changes to the flowgraph need to happen after the top_block has already started. So look for the tb.run() or tb.start(). If using tb.run() this is a blocking call that you'll need to change:

tb.start()
<your for-loop here>
tb.stop()
tb.wait()

Something like that.

Tom


Attachment: fm_example.py
Description: Text Data

Attachment: Screenshot from 2015-01-28 11:17:33.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]