calibrate command-line utility
Posted: Tue May 05, 2015 9:22 pm
RP folk,
Please find calibrate command-line utility here in the /Test/ directory:
https://github.com/edgo914/RedPitaya
The calibrate utility will make a best effort to calibrate RP
to within 1 millivolt at 0.0V, 0.8V, and -0.8V on channels 1 and 2.
The user will be prompted to read and enter voltages from digital
multimeter into the program. This process will calibrate the back
end, the front end calibration is fully automated via the program.
Once channel 1 calibration is completed, the user will be prompted
to switch the cable and termination to channel 2, and the process
will be repeated. Final results are printed at the end.
Caveats:
1) This will only work for the default High gain (LV) jumper
configuration. Of course the code may be modified for the Low gain
(HV) jumper configuration.
2) Dependent at this time on the default calibration coefficients
that RP ships with (seen with "calib -r -v"). If these defaults
ever change then this code will need to change accordingly.
3) This utility does not replace the 'calib' utility, but in fact
uses the 'calib' utility for reading/writing the EEPROM.
4) You really must enter the correct values that you read from the
DMM. Not responsible if you get that wrong.
Requirements:
1) MUST HAVE the calibration-aware versions of generate and acquire
installed in /opt/bin directory
2) Cable run from OUT1 to IN1 with 50 ohm termination in series
3) Digital Multimeter
See readme.txt for further info
enjoy!
edgo
Please find calibrate command-line utility here in the /Test/ directory:
https://github.com/edgo914/RedPitaya
The calibrate utility will make a best effort to calibrate RP
to within 1 millivolt at 0.0V, 0.8V, and -0.8V on channels 1 and 2.
The user will be prompted to read and enter voltages from digital
multimeter into the program. This process will calibrate the back
end, the front end calibration is fully automated via the program.
Once channel 1 calibration is completed, the user will be prompted
to switch the cable and termination to channel 2, and the process
will be repeated. Final results are printed at the end.
Caveats:
1) This will only work for the default High gain (LV) jumper
configuration. Of course the code may be modified for the Low gain
(HV) jumper configuration.
2) Dependent at this time on the default calibration coefficients
that RP ships with (seen with "calib -r -v"). If these defaults
ever change then this code will need to change accordingly.
3) This utility does not replace the 'calib' utility, but in fact
uses the 'calib' utility for reading/writing the EEPROM.
4) You really must enter the correct values that you read from the
DMM. Not responsible if you get that wrong.
Requirements:
1) MUST HAVE the calibration-aware versions of generate and acquire
installed in /opt/bin directory
2) Cable run from OUT1 to IN1 with 50 ohm termination in series
3) Digital Multimeter
See readme.txt for further info
enjoy!
edgo