OpenHantek / openhantek

OpenHantek is a DSO software for Hantek (Voltcraft/Darkwire/Protek/Acetech) USB digital signal oscilloscopes
http://openhantek.org/
GNU General Public License v3.0
763 stars 199 forks source link

Read calibration values for HT6022 device from config file (gain/offset for each channel and range) #287

Closed Ho-Ro closed 5 years ago

Ho-Ro commented 5 years ago

I've added the possibility to read gain and offset calibration values for HT6022BE from a simple config file:

[gain]

ch0\10mV=1.0
ch0\20mV=1.0
ch0\50mV=0.99
ch0\100mV=0.99
ch0\200mV=0.99
ch0\500mV=0.97
ch0\1000mV=0.97
ch0\2000mV=0.945
ch0\5000mV=0.945

ch1\10mV=1.0
ch1\20mV=1.0
ch1\50mV=1.0
ch1\100mV=1.0
ch1\200mV=1.0
ch1\500mV=1.0
ch1\1000mV=1.0
ch1\2000mV=0.94
ch1\5000mV=0.94

[offset]

ch0\10mV=-6
ch0\20mV=-6
ch0\50mV=-6
ch0\100mV=-6
ch0\200mV=-6
ch0\500mV=-7
ch0\1000mV=-7
ch0\2000mV=-7
ch0\5000mV=-7

ch1\10mV=+3
ch1\20mV=+3
ch1\50mV=+3
ch1\100mV=+3
ch1\200mV=+3
ch1\500mV=-1
ch1\1000mV=-1
ch1\2000mV=-1
ch1\5000mV=-1

Another minor change was the switch of the voltage display at the bottom of screen from peak-to-peak to average. This was mainly done because to the unstable display due to random peaks/glitches during data acquisition or USB transfer.

Ho-Ro commented 5 years ago

preparation for repo transfer