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



_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to