On 16/05/2023 20:31, Michael Toussaint wrote:
Hi,

I am testing the LO synching on a single N321 using the 2 Tx channels on the N321.

I have followed the LO setup steps from the knowledge base, https://kb.ettus.com/USRP_N320/N321_LO_Distribution, to distribute the LO. (Sample Python code used for setup below)

I am using separate streamers for each Tx channel and noticing a delay between the 2 channels executing.
Yeah, using separate streamers, the code doesn't attempt synchronization across two streamers.  You'll need a single   two-channel streamer--that's the "synchronization paradigm" that has been in UHD for over a decade...


The Tx channels do not appear to be synchronized, we're measuring anywhere from 0.5ns to 4ns of delay across the channels.

1) Is there a recommended process for synchronizing 2 Tx output channels and the output LOs on the N321?     a) Would using a single streamer for both Tx channels reduce the execution delay?

Thanks,

Michael



""" Sample Python Code Used for LO Setup """

import argparse
import logging
import sys

sys.path.append('/usr/lib/python3/dist-packages/')

import uhd

def main():
    parser = argparse.ArgumentParser()
    parser.add_argument("-a", "--args", default="name=SDR1", type=str)

    args = parser.parse_args()

    usrp = uhd.usrp.MultiUSRP(args.args)

    usrp.set_tx_lo_source("external", "lo1", 0)
    usrp.set_tx_lo_source("external", "lo1", 1)
    usrp.set_tx_lo_export_enabled(True, "lo1", 0)

    hw_lo_export_path = 'blocks/0/Radio#0/dboard/tx_frontends/0/los/lo1/lo_distribution/LO_OUT_1/export'

    if usrp.get_tree().exists(hw_lo_export_path):
        usrp.get_tree().access_bool(hw_lo_export_path).set(True)


if __name__ == "__main__":
    logging.basicConfig(format='%(asctime)s [%(levelname)s]: %(message)s', level=logging.DEBUG)
    main()

""" End of Code """


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

Reply via email to