Daniel, I have added the UHD API calls necessary to turn the transmit LO Distribution board ports on and off through python snippets. I did this in a way that does not require modifying UHD itself, only gr-uhd. I’ll send more details later when I’m in front of that machine.
<end transmission> > On Jan 18, 2022, at 17:07, Daniel Estévez <dan...@destevez.net> wrote: > > Hi Paul, > > Would this work if you run these calls before the gr-uhd code in the > flowgraph instances the device? This can be tested by inserting the code > manually. It could be a solution, but I'm not even sure if you can insert a > Python snippet in that location. However, if gr-uhd resets these settings > when initializing the device, then this approach won't work. > > Best, > Daniel. > >> El 18/1/22 a las 22:59, Paul Atreides escribió: >> wow, thanks Daniel! >> I just bumped an issue on the GNURadio github here >> <https://github.com/gnuradio/gnuradio/issues/5104> I've cross-linked my >> comments to gr-ATA as well. >> <https://github.com/gnuradio/gnuradio/issues/5104> >> the python code i'm using to enable the LO distro in the UHD python API is: >> import uhd >> import numpy as np >> usrp = uhd.usrp.MultiUSRP() >> usrp.get_tree().access_bool("/blocks/0/Radio#0/dboard/tx_frontends/0/los/lo1/lo_distribution/LO_OUT_0/export").set(True) >> usrp.get_tree().access_bool("/blocks/0/Radio#0/dboard/tx_frontends/0/los/lo1/lo_distribution/LO_OUT_1/export").set(True) >> usrp.get_tree().access_bool("/blocks/0/Radio#0/dboard/tx_frontends/0/los/lo1/lo_distribution/LO_OUT_2/export").set(True) >> i'm not sure how to work that into a python snippet yet as I think gr-uhd >> will claim the radio once the graph is started.