Also, another clue to what's going wrong could be in the cal data. Can you please convert it to JSON (flatc --strict-json -t /path/to/uhd/host/include/uhd/cal/pwr_cal.fbs -- ~/.local/share/uhd/cal/x3xx_pwr_generic_tx_tx+rx_XXXXXXX#0.cal).
You'll need to install flatc (flatbuffer compiler) first (e.g. apt install flatbuffers-compiler). --M On Tue, May 4, 2021 at 3:22 PM Martin Braun <[email protected]> wrote: > Devin, > > I tried running the exact sequence that you did, and it worked fine (X310, > UBX). Are you compiling UHD from source? If yes, can you please first > enable full logging (-DUHD_LOG_MIN_LEVEL=trace) and then produce a full log > (with UHD_LOG_LEVEL=trace environment variable, and/or > UHD_LOG_CONSOLE_LEVEL=trace environment variable depending on your config). > > Side note -- I'm happy you're using this API, and you seem to have gotten > pretty far. Kudos! > > --M > > On Fri, Apr 23, 2021 at 7:09 PM Devin Kelly <[email protected]> wrote: > >> Hello, >> >> I'm trying to calibrate the TX power for a USRP X310 using a Keysight >> Field Fox N9952B. >> >> I wrote a class for the field fox that subclasses VISADevice. It seems >> to get the numbers from the FF fox fine. >> >> I run the calibration and it seems to work just fine: >> >> ./uhd_power_cal.py --args type=x300 -d tx --meas-dev visa --antenna 'TX/RX' >> -o 'import=field_fox' -o 'visa_query=USB0::MY_INSTRUMENT::INSTR' >> >> === Detecting USRP... >> === Measurement direction: tx >> === Initializing measurement device... >> Loading external module: field_fox >> /usr/local/lib/python3.6/site-packages/gpib_ctypes/gpib/gpib.py:54: >> UserWarning: GPIB library not found. Please manually load it using >> _load_lib(filename). All GPIB functions will raise OSError until the library >> is manually loaded. >> warnings.warn(message) >> Loading external module: field_fox >> Found VISA device: Keysight Field Fox N9952B >> === Initializing port connector... >> === Initializing USRP calibration object... >> === Detected USRP type: X310 >> === Calibrating for channels: 0 >> === Calibrating for antennas: TX/RX >> === Requested sampling rate: 5.0 Msps, actual rate: 5.0 Msps >> === Launching calibration... >> === Using USRP LO offset: 10.00 MHz >> === Running calibration for channel 0, antenna TX/RX. >> [tx] Connect your signal generator to device channel 0, antenna TX/RX. Then, >> hit Enter. >> [X310] Switching to channel 0, antenna TX/RX. >> [WARNING] [0/Radio#0] Attempting to set tick rate to 0. Skipping. >> >> [WARNING] [CAL::DATABASE] Calibration data already exists for key: >> `x3xx_pwr_generic_tx_tx+rx' serial: `311A8A8#0'. Backing up to: >> "/home/lb/.local/share/uhd/cal/x3xx_pwr_generic_tx_tx+rx_311A8A8#0.cal.1619197435" >> >> >> >> However, when I try to use the Power API I run into problems: >> >> ./tx_waveforms --rate 1e6 --freq 900e6 --wave-type SINE --wave-freq 10e3 >> --power 10 --args='type=x300,serial=XXXXXXX' --channels 0 >> >> Creating the usrp device with: type=x300,serial=XXXXXX... >> Using Device: Single USRP: >> Device: X-Series Device >> Mboard 0: X310 >> RX Channel: 0 >> RX DSP: 0 >> RX Dboard: A >> RX Subdev: UBX RX >> RX Channel: 1 >> RX DSP: 1 >> RX Dboard: B >> RX Subdev: UBX RX >> TX Channel: 0 >> TX DSP: 0 >> TX Dboard: A >> TX Subdev: UBX TX >> TX Channel: 1 >> TX DSP: 1 >> TX Dboard: B >> TX Subdev: UBX TX >> >> Setting TX Rate: 1.000000 Msps... >> Actual TX Rate: 1.000000 Msps... >> >> Setting TX Freq: 900.000000 MHz... >> Setting TX LO Offset: 0.000000 MHz... >> Actual TX Freq: 900.000000 MHz... >> >> ERROR: USRP does not have a reference power API on channel 0! >> >> >> >> What am I not doing right? All my cal files are >> in ~/.local/share/uhd/cal/ >> >> The documentation (link <https://files.ettus.com/manual/page_power.html>) >> talks about table storage options (hard coded, eeprom, local files) but it >> doesn't discuss how to configure the UHD to use any of those options. I >> tried looking at the documentation for multi_usrp class too (link >> <https://files.ettus.com/manual/classuhd_1_1usrp_1_1multi__usrp.html#af5384b36f4fe1f8f90b41d8632c85ada>) >> without any sucess. >> >> Devin >> _______________________________________________ >> USRP-users mailing list -- [email protected] >> To unsubscribe send an email to [email protected] >> >
_______________________________________________ USRP-users mailing list -- [email protected] To unsubscribe send an email to [email protected]
