I’m hoping to have someone from
R&D comment as I’ve never used the power calibration myself. 

Sent from my iPhone

> On Apr 28, 2021, at 10:44 AM, Devin Kelly <[email protected]> wrote:
> 
> 
> Any ideas on this?
> 
> Thanks,
> Devin
> 
>> On Fri, Apr 23, 2021 at 1: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) 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) 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]

Reply via email to