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: shea_watson
Subject: Re: [Discuss-gnuradio] Problem using TVRX2 on multiple channels
Date: Sat, 25 Feb 2012 18:00:44 -0800 (PST)

Now i'm getting another error that i wasn't getting before...

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "./runDTVPos.py", line 333, in run
    tb = collect_double_tb(f0,filename0,f1,filename1,nsamples)
  File "/home/shea/Dropbox/SDP/Shea/DTVPos/Code/USRP_collection_double.py",
line 38, in __init__
    channels=range(2),
  File "/usr/local/lib/python2.7/dist-packages/gnuradio/uhd/__init__.py",
line 112, in constructor_interceptor
    return old_constructor(*args)
  File "/usr/local/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py",
line 2826, in usrp_source
    return _uhd_swig.usrp_source(*args)
RuntimeError: Operation not permitted

Am I not calling the constructor for the source right?




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

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




reply via email to

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