discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Problem using TVRX2 on multiple channels


From: shea_watson
Subject: [Discuss-gnuradio] Problem using TVRX2 on multiple channels
Date: Sat, 25 Feb 2012 15:16:58 -0800 (PST)

Hello,

I'm using Ubuntu 11.10, UHD 003.004.000, the USRP N210, and the TVRX2 card.

I am trying to use both the receive channels at once but I am getting a
strange error.

Below is my code:
 
                self.Add(self.wxgui_fftsink2_0.win)
                self.uhd_usrp_source_0 = uhd.usrp_source(
                        device_addr="",
                        stream_args=uhd.stream_args(
                                cpu_format="fc32",
                                channels=range(2),
                        ),
                )
                
                self.uhd_usrp_source_0.set_samp_rate(samp_rate)
                self.uhd_usrp_source_0.set_center_freq(509e6, 0)
                self.uhd_usrp_source_0.set_gain(3, 0)
                self.uhd_usrp_source_0.set_center_freq(593e6, 1)
                self.uhd_usrp_source_0.set_gain(3, 1)


However, when I run code that has this, I get this error:

Traceback (most recent call last):
  File "/home/shea/top_block.py", line 97, in <module>
    tb = top_block()
  File "/home/shea/top_block.py", line 76, in __init__
    self.uhd_usrp_source_0.set_center_freq(509000000, 1)
  File "/usr/local/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py",
line 1846, in set_center_freq
    return _uhd_swig.uhd_usrp_source_sptr_set_center_freq(self, *args)
RuntimeError: vector::_M_range_check



It seems like it isnt letting me instantiate multiple channels.  It doesn't
work in Gnuradio Companion either and I get the same error message.  Does
anyone have any ideas what could be going wrong?

I can give any more information you need.

Thanks!
SW
-- 
View this message in context: 
http://old.nabble.com/Problem-using-TVRX2-on-multiple-channels-tp33392627p33392627.html
Sent from the GnuRadio mailing list archive at Nabble.com.




reply via email to

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