not exactly.
so i'm trying to use the python API to run the equivalent of
get_device()->get_tree()->access<bool>("mboards/0/dboards/A/tx_frontends/0/los/lo1/lo_distribution/LO_OUT_0/export").set(true)
in python:
import uhd
import numpy as np
usrp = uhd.usrp.MultiUSRP()
usrp.get_tree().access_bool("mboards/0/dboards/A/tx_frontends/0/los/lo1/lo_distribution/LO_OUT_0/export").set(true)
RuntimeError: LookupError: Path not found in tree:
/mboards/0/dboards/A/tx_frontends/0/los/lo1/lo_distribution/LO_OUT_0/export
so my question is "what paths DO exist in the tree?"
On Tue, Jan 18, 2022 at 3:04 PM Marcus D. Leech <[email protected]>
wrote:
> On 2022-01-18 14:49, Paul Atreides wrote:
>
> working on this now. where do i get the path mentioned above?
>
> You can use:
>
> uhd_usrp_probe to get the entire property tree of the device, if that's
> what you're asking.
>
>
>
> On Tue, Jan 18, 2022 at 12:02 AM Marcus D. Leech <[email protected]>
> wrote:
>
>> On 2022-01-17 23:34, Paul Atreides wrote:
>> > Posting on both GNURadio and USRP lists here, since my application
>> > overlaps both gr-uhd/GNURadio and the UHD API.
>> > The top-level question is, can gr-uhd support all the necessary
>> > N321-specific commands necessary to export the TX LO from RF0 to RF1?
>> > That would include running the command to set the 1x4 splitter. That's
>> > the one in question.
>> >
>> >
>> get_device()->get_tree()->access<bool>("mboards/0/dboards/A/tx_frontends/0/los/lo1/lo_distribution/LO_OUT_0/export").set(true)
>> >
>> > If not, Marcus suggested using a python snippet. I've used that with
>> > RFNoC before, but how would that work?
>> > I'm guessing it would be an "after-init" and then call the python API
>> > for the above (if that command is supported)?
>> >
>> > Thanks
>> >
>> Yeah, I'd say "after-init", and have it grab the object name of the usrp
>> object? Using Pythonic, rather than C++ syntax?
>>
>>
>>
>
_______________________________________________
USRP-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]