|
From: | Paul Atreides |
Subject: | Re: [USRP-users] Re: N321 LO sharing between RF 0/1 |
Date: | Tue, 18 Jan 2022 17:29:20 -0500 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |