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:ml-node+s4n53983...@n7.nabble.com] 
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
<http://gnuradio.4.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_
by_code&node=53979&code=ZnJhbmsuYWxlc3NhbmRyb0Bjb21jYXN0Lm5ldHw1Mzk3OXwtMTY1
OTUzNjIwMQ==> .
 
<http://gnuradio.4.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer
&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicName
space-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.Node
Namespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_email
s%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> NAML 





--
View this message in context: 
http://gnuradio.4.n7.nabble.com/Front-Panel-GPIO-on-Ettus-X310-tp53979p53990.html
Sent from the GnuRadio mailing list archive at Nabble.com.
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to