discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Two different "rxpath" in one top_block, how to switc


From: shanki
Subject: [Discuss-gnuradio] Two different "rxpath" in one top_block, how to switch between them when the program is running?
Date: Wed, 1 Sep 2010 21:28:45 +0800 (CST)

hi all,
   recently, i want to put two different "rxpath" in one top_block, and switch them when the program is running, but i failed :
 
class my_top_block(gr.top_block):
    def __init__(self, ......):
        gr.top_block.__init__(self)

        self.txpath = usrp_transmit_path.usrp_transmit_path(.....)
        self.rxpath = usrp_receive_path.usrp_receive_path(.....)

        self.connect(self.rxpath)
        self.connect(self.txpath)

.............
    if(......):
        tb.rxpath = usrp_another_rxpath(....) # usrp_receive_path() and usrp_another_rxpath have completely different blocks connected but the same "usrp_souce"
it seems that the "rxpath" can not be changed when the top_block is running, or maybe i did it in a wrong way, could anyone tell me how to do it right?( how and when to switch the two rxpath?)
 
    any help will be appreciated!
 sincerely,
shanki



您想拥有和网易免费邮箱一样强大的软件吗?

reply via email to

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