Page 1 of 1

Location of ADC calibration values

Posted: Wed Oct 11, 2023 8:28 am
by abregnsbo
When reading the raw ADC data with zero input from the fpga using the 'pyrpl' library the ADC values are offset with e.g. -0.016 (full range being -1.0 to +1.0), whereas the Oscilloscope Application does not show such an offset.

1) Is it correct that the ADC offset is removed through calibration ?
2) If yes, where/how can I access this calibration data ?

Re: Location of ADC calibration values

Posted: Fri Oct 13, 2023 2:25 pm
by redpitaya
Hello abregnsbo,

Thank you for writing on the forum.

Pyrpl uses its own calibration and does not read the values from the EEPROM that are written there during factory calibration (or when performing the manual calibration of the board).

I would suggest looking through the PyRpl documentation to see how the PyRpl calibration parameters can be changed:
https://github.com/lneuhaus/pyrpl/tree/main
https://pyrpl.readthedocs.io/en/latest/index.html

Re: Location of ADC calibration values

Posted: Mon Oct 30, 2023 2:39 pm
by abregnsbo
Thanks for your answer. My question was badly formulated. My application is based on PyRPL and my problem is that the ADC values are *not* compensated.

I would like to know how I from the Red Pitaya Linux command prompt can read the EEPROM ADC offset calibration values.

Re: Location of ADC calibration values

Posted: Thu Nov 23, 2023 5:11 pm
by redpitaya
Hello abregnsbo,

Sorry for the late reply.

You can try using the "calib" tool, which should be accessible from the command line. Currently, it is not documented, but you can use the existing help menu to read the values.