usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

OOT Python Bindings in UHD-4.6

D
David
Mon, Jul 14, 2025 10:46 PM

Hello all,

I want to use my C++ RFNoC block controller in python. I am on UHD4.6 with
Ubuntu 22.04. My goal is being able to use my setters and getters for the
block user registers from C++ in python.

I see that in the UHD-4.7 release the rfnoc-example module started to
include the python bindings for OOT modules. Can I use that as a reference
point for UHD-4.6, or is there another method that is preferred?

I am not using GNURadio, besides having gr-ettus and GNR installed, and
would prefer to stay away from those python libaries if possible.

Thanks,

David

Hello all, I want to use my C++ RFNoC block controller in python. I am on UHD4.6 with Ubuntu 22.04. My goal is being able to use my setters and getters for the block user registers from C++ in python. I see that in the UHD-4.7 release the rfnoc-example module started to include the python bindings for OOT modules. Can I use that as a reference point for UHD-4.6, or is there another method that is preferred? I am not using GNURadio, besides having gr-ettus and GNR installed, and would prefer to stay away from those python libaries if possible. Thanks, David
MB
Martin Braun
Tue, Jul 15, 2025 8:12 AM

Hey David,

yes, we recommend you use the latest version of rfnoc-gain as a reference
for your Python bindings. Note that gr-ettus is also no longer required.

Also note that rfnoc-example was renamed to rfnoc-gain, and we continue to
provide incremental improvements and bugfixes. Therefore, if you're just
looking at code as a reference, I recommend looking at the version on
master branch:
https://github.com/EttusResearch/uhd/tree/master/host/examples/rfnoc-gain/python

--M

On Tue, Jul 15, 2025 at 12:48 AM David vitishlsfan21@gmail.com wrote:

Hello all,

I want to use my C++ RFNoC block controller in python. I am on UHD4.6 with
Ubuntu 22.04. My goal is being able to use my setters and getters for the
block user registers from C++ in python.

I see that in the UHD-4.7 release the rfnoc-example module started to
include the python bindings for OOT modules. Can I use that as a reference
point for UHD-4.6, or is there another method that is preferred?

I am not using GNURadio, besides having gr-ettus and GNR installed, and
would prefer to stay away from those python libaries if possible.

Thanks,

David


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

Hey David, yes, we recommend you use the latest version of `rfnoc-gain` as a reference for your Python bindings. Note that gr-ettus is also no longer required. Also note that rfnoc-example was renamed to rfnoc-gain, and we continue to provide incremental improvements and bugfixes. Therefore, if you're just looking at code as a reference, I recommend looking at the version on master branch: https://github.com/EttusResearch/uhd/tree/master/host/examples/rfnoc-gain/python --M On Tue, Jul 15, 2025 at 12:48 AM David <vitishlsfan21@gmail.com> wrote: > Hello all, > > I want to use my C++ RFNoC block controller in python. I am on UHD4.6 with > Ubuntu 22.04. My goal is being able to use my setters and getters for the > block user registers from C++ in python. > > I see that in the UHD-4.7 release the rfnoc-example module started to > include the python bindings for OOT modules. Can I use that as a reference > point for UHD-4.6, or is there another method that is preferred? > > I am not using GNURadio, besides having gr-ettus and GNR installed, and > would prefer to stay away from those python libaries if possible. > > Thanks, > > David > > _______________________________________________ > USRP-users mailing list -- usrp-users@lists.ettus.com > To unsubscribe send an email to usrp-users-leave@lists.ettus.com >
D
David
Tue, Jul 15, 2025 7:59 PM

Martin,

Thanks, I gave it a good try, and ran into some cmake issues where UHD 4.6
was missing a cmake module PYTHON_INSTALL_MODULE(). I tried adding it
myself but cmake isn't my favorite, and updated to UHD 4.8.

Thanks for the clarification,

David

On Tue, Jul 15, 2025 at 1:13 AM Martin Braun martin.braun@ettus.com wrote:

Hey David,

yes, we recommend you use the latest version of rfnoc-gain as a
reference for your Python bindings. Note that gr-ettus is also no longer
required.

Also note that rfnoc-example was renamed to rfnoc-gain, and we continue to
provide incremental improvements and bugfixes. Therefore, if you're just
looking at code as a reference, I recommend looking at the version on
master branch:
https://github.com/EttusResearch/uhd/tree/master/host/examples/rfnoc-gain/python

--M

On Tue, Jul 15, 2025 at 12:48 AM David vitishlsfan21@gmail.com wrote:

Hello all,

I want to use my C++ RFNoC block controller in python. I am on UHD4.6
with Ubuntu 22.04. My goal is being able to use my setters and getters for
the block user registers from C++ in python.

I see that in the UHD-4.7 release the rfnoc-example module started to
include the python bindings for OOT modules. Can I use that as a reference
point for UHD-4.6, or is there another method that is preferred?

I am not using GNURadio, besides having gr-ettus and GNR installed, and
would prefer to stay away from those python libaries if possible.

Thanks,

David


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


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

Martin, Thanks, I gave it a good try, and ran into some cmake issues where UHD 4.6 was missing a cmake module PYTHON_INSTALL_MODULE(). I tried adding it myself but cmake isn't my favorite, and updated to UHD 4.8. Thanks for the clarification, David On Tue, Jul 15, 2025 at 1:13 AM Martin Braun <martin.braun@ettus.com> wrote: > Hey David, > > yes, we recommend you use the latest version of `rfnoc-gain` as a > reference for your Python bindings. Note that gr-ettus is also no longer > required. > > Also note that rfnoc-example was renamed to rfnoc-gain, and we continue to > provide incremental improvements and bugfixes. Therefore, if you're just > looking at code as a reference, I recommend looking at the version on > master branch: > https://github.com/EttusResearch/uhd/tree/master/host/examples/rfnoc-gain/python > > --M > > On Tue, Jul 15, 2025 at 12:48 AM David <vitishlsfan21@gmail.com> wrote: > >> Hello all, >> >> I want to use my C++ RFNoC block controller in python. I am on UHD4.6 >> with Ubuntu 22.04. My goal is being able to use my setters and getters for >> the block user registers from C++ in python. >> >> I see that in the UHD-4.7 release the rfnoc-example module started to >> include the python bindings for OOT modules. Can I use that as a reference >> point for UHD-4.6, or is there another method that is preferred? >> >> I am not using GNURadio, besides having gr-ettus and GNR installed, and >> would prefer to stay away from those python libaries if possible. >> >> Thanks, >> >> David >> >> _______________________________________________ >> USRP-users mailing list -- usrp-users@lists.ettus.com >> To unsubscribe send an email to usrp-users-leave@lists.ettus.com >> > _______________________________________________ > USRP-users mailing list -- usrp-users@lists.ettus.com > To unsubscribe send an email to usrp-users-leave@lists.ettus.com >