On 02/20/2013 09:50 PM, ikjtel wrote:
> This is on a USRP1 with two channels , when calling get_usrp_info(0) all is 
> fine, but get_usrp_info(1) is greeted with a crash:
> 
> Traceback (most recent call last):
>   File "eh.py", line 158, in <module>
>     main ()
>   File "eh.py", line 151, in main
>     tb = build_block (options.args, options.tx_enable, options.rx_enable)
>   File "eh.py", line 116, in __init__
>     d = self.u_rx.get_usrp_info(i)                  <=============== note i=1 
> here
>   File "/usr/local/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py", 
> line 1824, in get_usrp_info
>     return _uhd_swig.uhd_usrp_source_sptr_get_usrp_info(self, chan)
> RuntimeError: vector::_M_range_check
> 

My first guess is that it doesnt know the channel mapping (how the
frontends map to RX DSPs). So there is nothing to query for channel 1
which isnt setup.

Try setting the subdevice spec string for for the two channel usage.

-josh

_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to