discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Problem using TVRX2 on multiple channels


From: Jason Abele
Subject: Re: [Discuss-gnuradio] Problem using TVRX2 on multiple channels
Date: Sat, 25 Feb 2012 17:30:58 -0800

On Sat, Feb 25, 2012 at 3:16 PM, shea_watson <address@hidden> wrote:
>
> 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)

My best guess is that you need to call

self.uhd_usrp_source_0.set_subdev_spec('A:RXA', 0)
self.uhd_usrp_source_0.set_subdev_spec('A:RXB', 1)

before you call set_center_freq() or set_gain().  Otherwise, the
usrp.source has no idea which tuner to address.

Jason

>
>
> 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.
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



reply via email to

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