Re: GRC port type assignment in Python Block

2021-07-26 Thread Josh Morman
Hi Jerrid, Your attempt at using structures to map to a complex type is sensible, but it appears that GRC doesn't parse this very well for at least the embedded python blocks. The UHD blocks are c++ based which just uses the io_signature object in the constructor which specifies a size, not a typ

Re: GRC port type assignment in Python Block

2021-07-26 Thread Marcus D. Leech
On 07/26/2021 07:32 AM, Josh Morman wrote: Hi Jerrid, Your attempt at using structures to map to a complex type is sensible, but it appears that GRC doesn't parse this very well for at least the embedded python blocks. The UHD blocks are c++ based which just uses the io_signature object in t

Using GPIO Pins on x300

2021-07-26 Thread Conner Awald
Hey everyone, I'm using an Ettus Research x300 with GNURadio and I'm going to need to use the front panel GPIO pins to automatically switch an external amplifier into the RF chain when transmitting. I found the following code on Ettus Research's github that demonstrates how to use the GPIO pins in

Re: Using GPIO Pins on x300

2021-07-26 Thread Marcus Müller
Hi Conner, You'd use the `usrp_source` or `usrp_sink`'s `set_gpio_attr` method; you could do that by adding a "Python Snippet" block to your GRC flow graph (if you're using GRC). Best regards, Marcus DISCLAIMER: Any attached Code is provided As Is. It has not been tested or validated as a pro