Hi Thesis,

first of all: be sure to actually copy and paste the code you're using;
what you've pasted can't run, since python is case sensitive and start()
and wait() are written in lower letters.

I don't understand what you mean with "close the scope"; can you elaborate?

Greetings,
Marcus

On 02/05/2015 05:12 AM, Thesis 2015 wrote:
> 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 <t...@trondeau.com
> <mailto:t...@trondeau.com>> wrote:
>
>     On Sun, Dec 28, 2014 at 10:13 PM, Thesis 2015
>     <thesis15...@gmail.com <mailto:thesis15...@gmail.com>> 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
>
>

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to