diff options
author | mattprost <matt.prost@ni.com> | 2022-04-06 14:00:06 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-04-07 13:28:02 -0700 |
commit | a8ad4917d331258e163e1786c0325a4b7e7d2e3e (patch) | |
tree | b3cd5935981721f5ad98c11dad78122d013f7573 /mpm/python/usrp_mpm/dboard_manager/mg_init.py | |
parent | eacbf15e30313793841ca6e4abd9cad02fffa5b4 (diff) | |
download | uhd-a8ad4917d331258e163e1786c0325a4b7e7d2e3e.tar.gz uhd-a8ad4917d331258e163e1786c0325a4b7e7d2e3e.tar.bz2 uhd-a8ad4917d331258e163e1786c0325a4b7e7d2e3e.zip |
n310: Add frontend bandwidth control
Allow users to control the Mykonos frontend bandwidth settings for
Rx and Tx. Note that this operation requires the daughterboard to
re-initialize, so it may take some time. Values for frontend filter
settings were derived using ADI's AD9371 Filter Wizard.
This feature requires MPM version 4.1 or later on the device.
Co-authored-by: bpadalino <bpadalino@gmail.com>
Signed-off-by: mattprost <matt.prost@ni.com>
Diffstat (limited to 'mpm/python/usrp_mpm/dboard_manager/mg_init.py')
-rw-r--r-- | mpm/python/usrp_mpm/dboard_manager/mg_init.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/mg_init.py b/mpm/python/usrp_mpm/dboard_manager/mg_init.py index 00a2eab7d..02658abb9 100644 --- a/mpm/python/usrp_mpm/dboard_manager/mg_init.py +++ b/mpm/python/usrp_mpm/dboard_manager/mg_init.py @@ -464,6 +464,10 @@ class MagnesiumInitManager(object): jesdcore.send_sysref_pulse() time.sleep(0.001) # 17us... ish. jesdcore.send_sysref_pulse() + if args.get('tx_bw'): + self.mykonos.set_bw_filter('TX', args.get('tx_bw')) + if args.get('rx_bw'): + self.mykonos.set_bw_filter('RX', args.get('rx_bw')) async_exec(self.mykonos, "finish_initialization") # According to the AD9371 user guide, p.57, the RF cal must come before # the framer/deframer init. We tried otherwise, and failed. So don't |