-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to calibrate? Where are cal_zero.py and calibrate.py? #55
Comments
Short answer - it is in the same repo as the README: https://github.com/Ho-Ro/Hantek6022API/blob/master/examples/calibrate.py |
Thanks - got it, looks very thorough. I'll take a couple of days to setup Python and test this out. I will report back here on how it goes in Windows. |
The Hantek 6022 devices have an offset table in the EEPROM as factory setup (at least my 6022BE had). These values are subtracted from the raw 8bit samples that are in "binary offset" format, i.e. 0x80 = 0V, < 0x80 = negative voltages, > 0x80 = positive voltages. For my device I get e.g. 0x86 for the x10 input ranges, with input shorted it measures exactly this raw value.
|
Thank you Ho-Ro for your extremely helpful replies. Things are working pretty well now. My starting point was offsets up to 200mV and voltage measurements 10% low - not too useful! Calibrating with calibrate.py now gives voltage measurements within 2%, and I'm sure most of that error is due to my less than perfect procedures. My offsets are < 15mV. Here is some feedback on changes I needed to make to get there. Calibrate.py fails to run in Windows 10 with the following error: I believe this is because .kernelDriverActive() is not supported in Windows. To correct this I changed LibUsbScope.py line 158: I then could run "calibrate.py -g -e -c" to generate a "modelDSO6022.conf" file. calibrate.py line 185 (also make similar change for other channel) In case you would like to incorporate my modifications, I have attached the 2 modified Python scripts for reference, and the resulting generated .conf file that works well. My changes are marked with "#ji". calibrate.py.pdf Thanks again for helping out a newbie and converting my 6022BL from a paperweight to a fun-to-use tool. |
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
I am astounded by how good this software is! I am using OpenHantek6022 3.0.1 FW0204 on Windows 10 with a Hantek 6022BL.
Voltage measurements are off by 10%, so I would like to calibrate the display. I have a modelDSO6022.conf file that I can change values in and see a corresponding effect in the display.
I read the calibration notes in:
https://github.com/Ho-Ro/Hantek6022API/blob/master/README.md#create-calibration-values-for-openhantek
This references both examples/cal_zero.py and examples/calibrate.py. I have searched github in both OpenHantek and OpenHantek6022, and eevblog but cannot find these files anywhere.
Would you please provide a pointer to the python programs, or at least hints on how to determine values for the modelDSO6022.conf file?
The text was updated successfully, but these errors were encountered: