discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Error while receiving


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Error while receiving
Date: Sat, 11 Oct 2008 20:11:01 -0700
User-agent: Mutt/1.5.17 (2007-11-01)

On Sat, Oct 11, 2008 at 09:33:15AM -0700, kaleem ahmad wrote:
> 
> Thanks Johnathan,
> 
> I am tring following as you suggested:
> 
> "The usrp.source_c block only has one output, so you just connect:
> 
> fg.connect(src, fg1)
> fg.connect(src, fg2)"


> But by doing this my fg2 is working but fg1 is not...It seems as the
> connection of fg1 is overwritten by fg2???

This definitely works.  We use it all the time.


> By the way I am using gnuradio3.1.1...is there any update in connect method
> in later versions?
> By the way I have also tried following:
> 
> fg.connect(src, fg1)

You need to be using gr.top_block code, not gr.flow_graph, then 
bracket the reconfigration with self.lock() and self.unlock().

  self.lock()

  disconnect_all()
  self.connect(src,fg2)
  .......
  disconnect_all()
  self.connect(src,fg1)

  self.unlock()

See usrp_siggen.py for example usage.

Eric



> ........
> while(1):
>         disconnect_all()
>         fg.connect(src,fg2)
>         .......
>         disconnect_all()
>         fg.connect(src,fg1)
> 
> But it is also not working? any suggestion for both of these methods?
> Best Regards
> Kaleem Ahmad





reply via email to

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