You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fft... and plot... allow to visualize captured data from scope
set_cal_out_freq.py allows to set the output frequency freely
between 32 Hz and 100 kHz
Signed-off-by: Martin <[email protected]>
that is provided by [OpenHantek6022](https://github.com/OpenHantek/OpenHantek6022).
102
-
The `libusb-1.0.dll` file should be found in the PATH, e.g. it could be in the `python.exe` directory or together with the example programs in the same directory.
106
+
The `libusb-1.0.dll` file should be found in the PATH, e.g. it could be in the `python.exe` directory
107
+
or together with the example programs in the same directory.
103
108
104
109
YMMV, I checked it only with a bare-bones virtual Win7 install under Debian.
105
110
106
111
## Create calibration values for OpenHantek
107
112
108
-
As you can see in the trace above the scope has a quite big zero point error (the measured real signal switches between 0.0 V and 2.0 V) - also the gain is defined by resistors with 5% tolerance in the frontend - in best case by two resistors R27/17 & R31/21 in the chain (x1), in worst case by four resistors R27/17 & R31/21 & R32/23 & R18/19/22 in the chain (x2, x5, x10).
In the end you can have a statistical gain tolerance of about 7%...10% -> RSS analysis (root sum square, square all tolerances, sum them up und calculate the root of this sum) gives an expected tolerance range:
122
+
In the end you can have a statistical gain tolerance of about 7%...10% -> RSS analysis
123
+
(root sum square, square all tolerances, sum them up und calculate the root of this sum)
124
+
gives an expected tolerance range:
113
125
114
126
- sqrt( 2 * (5%)² ) = 1.4 * 5% = 7% for gain step x1
115
127
- sqrt( 4 * (5%)² ) = 2 * 5% = 10% for all other gains
@@ -121,7 +133,7 @@ or `%APPDATA%\OpenHantek\modelDSO6022.ini` for Windows.
121
133
122
134
Step 2 uses the factory offset calibration values in eeprom.
123
135
Out of the box only offset values are contained in eeprom,
124
-
the program `calibrate_6022.py` (installed in `/usr/local/bin`) allows to update these values in case the offset has changed over time.
136
+
the program `calibrate_6022.py` (installed in `/usr/bin`) allows to update these values in case the offset has changed over time.
125
137
126
138
Program to calibrate offset and gain of Hantek 6022BE/BL
127
139
1. Measure offset at low and high speed for the four gain steps x10, x5, x2, x1
@@ -179,10 +191,10 @@ Requested Voltage | Applied Voltage | Comment
179
191
180
192
## Use the device as a data logger ##
181
193
182
-
The program `capture_6022.py` (also in `/usr/local/bin/`) allows to capture both channels over a long time.
194
+
The program `capture_6022.py` (also in `/usr/bin/`) allows to capture both channels over a long time.
183
195
184
-
The 256 x downsampling option increases the SNR and effective resolution (8bit -> at least 12 bit) and allows very long time recording.
185
-
The program uses the offset and gain calibration from EEPROM.
196
+
The 256 x downsampling option increases the SNR and effective resolution (8bit -> at least 12 bit)
197
+
and allows very long time recording. The program uses the offset and gain calibration from EEPROM.
186
198
It writes the captured data into stdout or an outfile and calculates DC, AC and RMS of the data.
0 commit comments