Discussion and technical support related to USRP, UHD, RFNoC
View all threadsHi 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 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
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