OpenHantek / OpenHantek6022

OpenHantek6022 is a DSO software for Hantek USB digital signal oscilloscopes 6022BE / BL. Development OS is Debian Linux, but the program also works on FreeBSD, MacOS, RaspberryPi and Windows. No support for non-Linux related issues unless a volunteer steps in!
GNU General Public License v3.0
868 stars 153 forks source link

Ability to calibrate voltage reading #189

Closed KanKub closed 3 years ago

KanKub commented 3 years ago

Is your feature request related to a problem? Please describe. I need corrected voltage reading. the current reading is offset by about 120mV and that's not usable when measuring some dc signal, I have to manually read the scope scale.

Describe the solution you'd like Options to calibrate/offset the reading voltage.

Additional context image This is the signal when I connect the probe to GND.

cryptozoy commented 3 years ago

You can do it in a text editor by changing parameters [offset] and [gain] of calibration file:

Calibration file paths:

Linux/FreeBSD/macOS: $HOME/.config/OpenHantek/modelDSO6022.ini

Windows: %APPDATA%\Roaming\OpenHantek\modelDSO6022.ini

Calibration file from repository: https://github.com/OpenHantek/OpenHantek6022/blob/main/openhantek/src/hantekdso/models/modelDSO6022.ini

My calibration file, if you need an example of it: modelDSO6022.zip

Qt default settings path documentation: https://doc.qt.io/qt-5/qsettings.html#locations-where-application-settings-are-stored

If your oscilloscope is DDS120, then calibration file name is "modelDDS120.ini": https://github.com/OpenHantek/OpenHantek6022/blob/main/openhantek/src/hantekdso/models/modelDDS120.ini

KanKub commented 3 years ago

Thank you! but I couldn't find OpenHantek Folder in %appdata% (Windows 10). How can I find them? I also look in the installation folder at desktop but no clue of any config.

cryptozoy commented 3 years ago

You have to create such folder and insert calibration file into it. Then you can play with [offset] and [gain] parameters by editing them. Do not forget to restart the program for the changes to be accepted.

Ho-Ro commented 3 years ago

There's also a calibration program that calculates not only offset but also gain calibration values and creates the file - or even better - stores the values in the device's EEPROM. It's also mentioned and linked on the front page.

image