'gr_hier_block2_sptr' object has no attribute '_write_fpga_reg'

Hi all,

I’m working on a synchronization block to allow the transmitter and
receiver to co-locate on the same motherboard and work alternatively,
transmitter working for 0.5 second then receiver working for 0.5 second,
and then repeat this process.Â

I’m using USRP1 and LFTX/RX to develop my transmitter and receiver,
which work well when transmitter and receiver are plugged on two USRP1
mother board.Â

I’m trying to write fpga register FR_MASTER_CTRL to enable transmitter
board or receiver board every 0.5 second, in order to implement tx and
rx working alternatively.

owever, i got an AttributeError

File “/home/john/gnuradio/gr-iono/usrp_ionsonde_control.py”, line 197,
in set_reset
   self.write_mode()
 File “/home/john/gnuradio/gr-iono/usrp_ionsonde_control.py”, line 166,
in write_mode
   self._u._write_fpga_reg(FR_MASTER_CTRL, self.mode)
 File
“/usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py”,
line 50, in getattr
   return getattr(self._hb, name)
AttributeError: ‘gr_hier_block2_sptr’ object has no attribute
‘_write_fpga_reg’

What’s the problem may be? Could this fpga reg be written every half
second or even 20 microseconds?

Thank you so much for help.

Yan