discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] db_base.py:108 _refclk_divisor() not implemented


From: Berndt Josef Wulf
Subject: [Discuss-gnuradio] db_base.py:108 _refclk_divisor() not implemented
Date: Sun, 19 Mar 2006 03:10:21 +1030
User-agent: KMail/1.9.1

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

Attachment: pgpuJ6F_XnTTu.pgp
Description: PGP signature


reply via email to

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