usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

block control methods in the python api

KW
Kevin Williams
Mon, Feb 17, 2025 9:01 AM

Hi Everyone,

I have a few "get()" and "set()" methods in my custom RFNoC block driver.

I'm finding the documentation on using pybind a bit sketchy, and struggling
to get these methods recognized in the python object representing my block.

Is there perhaps an example I can follow somewhere?

Many thanks, Kevin

Hi Everyone, I have a few "get()" and "set()" methods in my custom RFNoC block driver. I'm finding the documentation on using pybind a bit sketchy, and struggling to get these methods recognized in the python object representing my block. Is there perhaps an example I can follow somewhere? Many thanks, Kevin
MB
Martin Braun
Tue, Feb 18, 2025 1:26 PM

Hi Kevin,

you can follow the rfnoc-gain example:
https://github.com/EttusResearch/uhd/blob/master/host/examples/rfnoc-gain/lib/gain_block_control_python.hpp

--M

On Mon, Feb 17, 2025 at 10:02 AM Kevin Williams <
kevin.williams@vastech.co.za> wrote:

Hi Everyone,

I have a few "get()" and "set()" methods in my custom RFNoC block driver.

I'm finding the documentation on using pybind a bit sketchy, and struggling
to get these methods recognized in the python object representing my block.

Is there perhaps an example I can follow somewhere?

Many thanks, Kevin


USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com

Hi Kevin, you can follow the rfnoc-gain example: https://github.com/EttusResearch/uhd/blob/master/host/examples/rfnoc-gain/lib/gain_block_control_python.hpp --M On Mon, Feb 17, 2025 at 10:02 AM Kevin Williams < kevin.williams@vastech.co.za> wrote: > Hi Everyone, > > I have a few "get()" and "set()" methods in my custom RFNoC block driver. > > I'm finding the documentation on using pybind a bit sketchy, and struggling > to get these methods recognized in the python object representing my block. > > Is there perhaps an example I can follow somewhere? > > Many thanks, Kevin > > _______________________________________________ > USRP-users mailing list -- usrp-users@lists.ettus.com > To unsubscribe send an email to usrp-users-leave@lists.ettus.com >
KW
Kevin Williams
Tue, Feb 18, 2025 3:01 PM

Perfect, thanks Martin. That worked great!

From: Martin Braun martin.braun@ettus.com
Sent: Tuesday, 18 February 2025 15:26
To: Kevin Williams kevin.williams@vastech.co.za
Cc: usrp-users@lists.ettus.com
Subject: [EXTERNAL]Re: [USRP-users] block control methods in the python api

Hi Kevin,

you can follow the rfnoc-gain example: https://github.com/EttusResearch/uhd/blob/master/host/examples/rfnoc-gain/lib/gain_block_control_python.hpp https://url.za.m.mimecastprotect.com/s/5PVtC8qANNTYxkVInfDTypO9o?domain=github.com

--M

On Mon, Feb 17, 2025 at 10:02 AM Kevin Williams <kevin.williams@vastech.co.za mailto:kevin.williams@vastech.co.za > wrote:

Hi Everyone,

I have a few "get()" and "set()" methods in my custom RFNoC block driver.

I'm finding the documentation on using pybind a bit sketchy, and struggling
to get these methods recognized in the python object representing my block.

Is there perhaps an example I can follow somewhere?

Many thanks, Kevin


USRP-users mailing list -- usrp-users@lists.ettus.com mailto:usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com mailto:usrp-users-leave@lists.ettus.com

Perfect, thanks Martin. That worked great! From: Martin Braun <martin.braun@ettus.com> Sent: Tuesday, 18 February 2025 15:26 To: Kevin Williams <kevin.williams@vastech.co.za> Cc: usrp-users@lists.ettus.com Subject: [EXTERNAL]Re: [USRP-users] block control methods in the python api Hi Kevin, you can follow the rfnoc-gain example: https://github.com/EttusResearch/uhd/blob/master/host/examples/rfnoc-gain/lib/gain_block_control_python.hpp <https://url.za.m.mimecastprotect.com/s/5PVtC8qANNTYxkVInfDTypO9o?domain=github.com> --M On Mon, Feb 17, 2025 at 10:02 AM Kevin Williams <kevin.williams@vastech.co.za <mailto:kevin.williams@vastech.co.za> > wrote: Hi Everyone, I have a few "get()" and "set()" methods in my custom RFNoC block driver. I'm finding the documentation on using pybind a bit sketchy, and struggling to get these methods recognized in the python object representing my block. Is there perhaps an example I can follow somewhere? Many thanks, Kevin _______________________________________________ USRP-users mailing list -- usrp-users@lists.ettus.com <mailto:usrp-users@lists.ettus.com> To unsubscribe send an email to usrp-users-leave@lists.ettus.com <mailto:usrp-users-leave@lists.ettus.com>