discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Front Panel GPIO on Ettus X310


From: Falessan
Subject: Re: [Discuss-gnuradio] Front Panel GPIO on Ettus X310
Date: Tue, 2 Jun 2015 06:42:10 -0700 (MST)

Hi Martin,

 

Thanks for the response.  It looks like we’ll have to go the C++ route then. Thanks for your assistance.

 

Best Regards,

Frank

 

From: Martin Braun-2 [via GnuRadio] [mailto:[hidden email]]
Sent: Monday, June 01, 2015 7:50 PM
To: Falessan
Subject: Re: Front Panel GPIO on Ettus X310

 

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


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


If you reply to this email, your message will be added to the discussion below:

http://gnuradio.4.n7.nabble.com/Front-Panel-GPIO-on-Ettus-X310-tp53979p53983.html

To unsubscribe from Front Panel GPIO on Ettus X310, click here.
NAML



View this message in context: RE: Front Panel GPIO on Ettus X310
Sent from the GnuRadio mailing list archive at Nabble.com.

reply via email to

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