[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] db_base.py:108 _refclk_divisor() not implemented
From: |
Matt Ettus |
Subject: |
Re: [Discuss-gnuradio] db_base.py:108 _refclk_divisor() not implemented |
Date: |
Sat, 18 Mar 2006 12:45:27 -0800 |
User-agent: |
Thunderbird 1.5 (X11/20051201) |
Sorry about that. I fixed it, so just update gr-usrp and you should be ok.
Matt
Berndt Josef Wulf wrote:
> G'day,
>
> in db_base.py at line 108 the function for _refclk_divisor() is apparently
> not
> implemented causing failure to run any code accessing the usrp.
>
> Traceback (most recent call last):
> File "./benchmark_usb.py", line 106, in ?
> main ()
> File "./benchmark_usb.py", line 96, in main
> ok = run_test (rate, verbose)
> File "./benchmark_usb.py", line 67, in run_test
> usrp_rx = usrp.source_s (0, rx_decim, 1, 0x32103210,
> usrp.FPGA_MODE_LOOPBACK)
> File "/usr/pkg/lib/python2.4/site-packages/gnuradio/usrp.py", line 260, in
> __init__
> self.db = (db_instantiator.instantiate(self._u, 0),
> File "/usr/pkg/lib/python2.4/site-packages/gnuradio/db_instantiator.py",
> line 30, in instantiate
> return _instantiator_map[dbid](usrp, which)
> File "/usr/pkg/lib/python2.4/site-packages/gnuradio/db_dbs_rx.py", line
> 339,
> in <lambda>
> db_instantiator.add(usrp_dbid.DBS_RX, lambda usrp, which :
> (db_dbs_rx(usrp, which),))
> File "/usr/pkg/lib/python2.4/site-packages/gnuradio/db_dbs_rx.py", line 67,
> in __init__
> self._enable_refclk(True)
> File "/usr/pkg/lib/python2.4/site-packages/gnuradio/db_base.py", line 103,
> in _enable_refclk
> ((self._refclk_divisor() & REFCLK_DIVISOR_MASK)
> File "/usr/pkg/lib/python2.4/site-packages/gnuradio/db_base.py", line 112,
> in _refclk_divisor
> raise NotImplementedError
> NotImplementedError
>
> The source code indeed reveals an unimplemented function raising
> "NotImplementedError" for _refclk_divisor().
>
> def _refclk_divisor(self):
> """
> Return value to stick in REFCLK_DIVISOR register
> """
> raise NotImplementedError
>
> My guess is that this is work in progress. Previous revisions return a value
> of 4.
>
> cheerio Berndt
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio