It looks like the device is not properly initialized. Things to make sure:
- You're running UHD 3 on your host. Are you running UHD 3 on your device?
- It's not clear if there is a specific issue with get_num_xbars(), or if
there's a general RPC problem. Does uhd_usrp_probe work?

--M

On Fri, Dec 11, 2020 at 11:06 PM Dylan Baros <dylan.ba...@ni.com> wrote:

> Good afternoon,
>
> Sent a message yesterday but I realize that it was not complete so I
> apologize. The issue is that I am getting the following error message when
> doing the spectrum analyzer tutorial on the gnuradio website.
> https://wiki.gnuradio.org/index.php/Guided_Tutorial_Hardware_Considerations
> Guided Tutorial Hardware Considerations - GNU Radio
> <https://wiki.gnuradio.org/index.php/Guided_Tutorial_Hardware_Considerations>
> Introduction []. One of the more basic (and also incredibly useful) things
> you can do in GNU Radio with a receiver is to create a software radio
> spectrum analyzer.
> wiki.gnuradio.org
>
>
> Generating: '/home/dylan/Documents/sa1.py'
>
> Executing: /usr/bin/python3 -u /home/dylan/Documents/sa1.py
>
> [INFO] [UHD] linux; GNU C++ version 9.2.1 20200304; Boost_107100;
> UHD_3.15.0.0-2build5
> [INFO] [MPMD] Initializing 1 device(s) in parallel with args:
> mgmt_addr=192.168.10.2,type=n3xx,product=n320,serial=31EDB79,claimed=False,addr=192.168.10.2
> Traceback (most recent call last):
>   File "/home/dylan/Documents/sa1.py", line 199, in <module>
>     main()
>   File "/home/dylan/Documents/sa1.py", line 175, in main
>     tb = top_block_cls()
>   File "/home/dylan/Documents/sa1.py", line 92, in __init__
>     self.uhd_usrp_source_0 = uhd.usrp_source(
>   File "/usr/lib/python3/dist-packages/gnuradio/uhd/__init__.py", line
> 125, in constructor_interceptor
>     return old_constructor(*args)
>   File "/usr/lib/python3/dist-packages/gnuradio/uhd/uhd_swig.py", line
> 2787, in make
>     return _uhd_swig.usrp_source_make(device_addr, stream_args,
> issue_stream_cmd_on_start)
> RuntimeError: rpc::timeout: Timeout of 2000ms while calling RPC function
> 'get_num_xbars'
>
> >>> Done (return code 1)
>
> I am using a USRP N321 and N320.
>
>
> Any ideas? Thanks.
>

Reply via email to