Page 1 of 1

calibrate command-line utility

Posted: Tue May 05, 2015 9:22 pm
by edgo
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

Re: calibrate command-line utility

Posted: Mon Jul 13, 2015 7:16 pm
by edgo
I have just updated the calibrate utility to allow for a more accurate voltage setting on the back end.

https://github.com/edgo914/RedPitaya/tr ... /calibrate

Re: calibrate command-line utility

Posted: Thu May 12, 2016 10:45 am
by Joschi
Hi,
i would like to caibrate my RP with this command line tool.
The requirements say: "1) MUST HAVE the calibration-aware versions of generate and acquire
installed in /opt/bin directory" but i cant`t move any data to that directory. I always get an Error, saying "Read-only file system".
I hope someone can help me. When i run the command line utility right now, the standard "generate" and "aquire" are used and they don`t work with the parameters set by the utility made by edgo.

Best regards!

Re: calibrate command-line utility

Posted: Thu May 12, 2016 2:23 pm
by flob
Hi,
Did you run "rw" command before moving files into RP file system ?

Re: calibrate command-line utility

Posted: Thu May 12, 2016 8:27 pm
by viseng
HI Edgo,

Just wanted to clarify one point - Should there also be a 50 ohm load resistor across the input terminals, otherwise the 50 ohm resistor you have specified in series with the signal would have nil effect?

Regards

Viseng.

Re: calibrate command-line utility

Posted: Thu May 19, 2016 11:19 am
by Joschi
flob wrote:Hi,
Did you run "rw" command before moving files into RP file system ?

Thanks! That was the problem!

Re: calibrate command-line utility

Posted: Thu Oct 20, 2016 10:18 am
by luigiraffaele124
One Clarification.
Where are situed the Command Line Utility?
In this manual http://docs-europe.electrocomponents.co ... 2aff87.pdf it says they are in /opt/bin/ dir. But I can't find these, also running a "find" command in WinSCP utility.
Thanks

Re: calibrate command-line utility

Posted: Fri Oct 21, 2016 1:05 pm
by Nils Roos
The utility is not included in the official OS release. You have to download it to your Red Pitaya or build it from source.
In this manual it says they are in /opt/bin/ dir.
The instructions you refer to are for an old version (0.92) of the Red Pitaya ecosystem. Since then there have been numerous changes to the folder layout and set of utilities. The bin-dir with the tools is now /opt/redpitaya/bin/ .

Re: calibrate command-line utility

Posted: Mon Aug 26, 2019 11:00 am
by nayam
Thanks for the instructions. Its very helpful.