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
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to