Skip to content

Calibration not saved; gain values all 1, offset all 0 #427

@redfast00

Description

@redfast00

When I try to calibrate the scope according to the procedures in the README, it is not persistent as I expected: I have to do this every time. When I look at the calibration file, I see that the gain values are all 1, and the offset values all 0. When I replug the scope, and restart the program, the offset errors are back again.

Steps to reproduce the behavior:

  1. Start the program
  2. Calibrate the scope by follow instructions in readme
  3. Click Save settings
  4. Click Exit
  5. Replug scope
  6. Start program
  7. Observe that it still measures 60mV in the 20mV/div setting, with the probes shorted to GND; measures 110 mV in 200mV/div. For 500mV/div and up, the error is basically nothing.
  8. When I now do the calibration procedure again, it's good up to when I restart the program again
$ cat .config/OpenHantek/DSO-6022BL_4541C616915B_calibration.ini
[eeprom]
replace_eeprom=false

[gain]
ch0\1000mV=1
ch0\100mV=1
ch0\2000mV=1
ch0\200mV=1
ch0\20mV=1
ch0\5000mV=1
ch0\500mV=1
ch0\50mV=1
ch1\1000mV=1
ch1\100mV=1
ch1\2000mV=1
ch1\200mV=1
ch1\20mV=1
ch1\5000mV=1
ch1\500mV=1
ch1\50mV=1

[offset]
ch0\1000mV=0
ch0\100mV=0
ch0\2000mV=0
ch0\200mV=0
ch0\20mV=0
ch0\5000mV=0
ch0\500mV=0
ch0\50mV=0
ch1\1000mV=0
ch1\100mV=0
ch1\2000mV=0
ch1\200mV=0
ch1\20mV=0
ch1\5000mV=0
ch1\500mV=0
ch1\50mV=0

Expected behavior

The offset setting should be saved correctly, so that they are remembered across program starts.

Computer environment (please complete the following information):

Image

  • OpenHantek version: 3.4.0
  • OS: Arch Linux
  • Distribution, version: N/A, rolling
  • Screen resolution, screen setup (e.g. multimonitor, etc.): N/A
  • Video hardware: N/A
  • OpenGL version: Graphic: 4.6 (Compatibility Profile) Mesa 25.0.1-arch1.2 - GLSL version 1.20
  • Qt version: Qt 5.15.16
  • C++ compiler version: ?

Scope device (please complete the following information):

  • Device Hantek DSO-6022BL
  • Program top line: I don't have this on Arch Linux/i3; maybe it could be useful to log this to the console/terminal?
  • Input signal: grounded probes
  • Probe setting: probe 10X

Additional context
Add any other context about the problem here, e.g. the program output if started in a console like xterm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    More input please!More info necessary to handle this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions