[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Front Panel GPIO on Ettus X310
From: |
Martin Braun |
Subject: |
Re: [Discuss-gnuradio] Front Panel GPIO on Ettus X310 |
Date: |
Mon, 01 Jun 2015 17:10:04 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
Hey Frank,
multi_usrp is exactly what the GNU Radio blocks use under the hood.
However, multi_usrp is *not* SWIGged -- which means you can't access
multi_usrp from Python. I believe that's what's triggering your error
message. get_device() can only be called on your USRP blocks using C++.
Now, if you *were* to use C++, I'd recommend having a look at the 'gpio'
example in UHD. It shows how to map ATRs to GPIOs, which sounds like
what you're trying to do.
I can see how these GPIO functions would be useful in a swigged fashion,
though, and maybe even available by command tag. We should get them onto
master.
M
On 01.06.2015 14:23, Falessan wrote:
> Hi,
>
> I would like to command the Front Panel GPIO pins for use as a trigger
> signal to another piece of equipment under gnuradio and python (I'm not a
> C++ programmer). I've been trying unsuccessfully to use the UHD multi_usrp
> "get_gpio_banks" and the "set_gpio_attr" commands to control the I/O pins. I
> receive an "Attribute error: 'usrp_sink_sptr' Object has no attribute ".
>
> My questions are:
> 1)Has the UHD multi_source class been incorporated into the GNU Radio API ?
> 2) Is it currently possible to interface to the GPIO pins without under
> Gnuradio without going the C++ route ?
>
> Best Regards,
> Frank Alessandro