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
This should bring the discussion to the right repo - combining OpenHantek/OpenHantek6022#83 and OpenHantek/openhantek#213
I would like to gather your experience to get an easy step-by-step Windows installation guide.
I wasn't aware of those calibration hints - thank you for the link!
It's been some struggle for me with zero Python experience, but I got it working eventually.
Just in case someone else ever wants to calibrate his/her Hantek 6022BE on a Windows 10 machine, here is what I did:
install Python3
get the required libusb-1.0.dll file:
download the v1.0.23 zip from https://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.23/
extract libusb-1.0.dll from the zip file into {Python install dir}/
(where python.exe sits)
I think that libusb should be installed correctly, so the file `libusb-1.0.dll' is in a globally accessible directory. Not sure if Zadig could help here?
prepare Hantek6022API:
git clone https://github.com/Ho-Ro/Hantek6022API
cd Hantek6022API
pip install .
when I tried to run the calibration at this point, Python complained about missing firmware files.
I could solve this by copying the whole Hantek6022API\PyHT6022\HantekFirmware folder to
{Python install dir}\Lib\site-packages\PyHT6022\HantekFirmware
I made some changes to the firmware directories with e497692 - after installing on my bare-bone virtual W7 the FW files were available, but due to problems with the virtual installation I could not check the USB installation/communication. I would appreciate it if someone could check on a real W7 and W10.
run the calibration:
cd examples
calibrate_6022.py -gec
I was then able to calibrate the scope providing the given voltages.
All works perfectly fine now and voltage readings are nicely accurate.
Again, many many thanks for your work! :-)
You can also use the libusb-1.0.dll file from the libusb-1.0 version
that is provided by OpenHantek6022.
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.
YMMV, I checked it only with a bare-bones virtual Win7 install under Debian, but this time with a working USB forwarding.
I just checked with a fresh Python3 installation on (non-virtual) Windows 7 and libusb-1.0.dll from the OpenHantek6022 folder copied into the Python install dir.
It did work immediately - no more need to copy the firmware folder around.
This should bring the discussion to the right repo - combining OpenHantek/OpenHantek6022#83 and OpenHantek/openhantek#213
I would like to gather your experience to get an easy step-by-step Windows installation guide.
@justlep wrote:
I think that
libusb
should be installed correctly, so the file `libusb-1.0.dll' is in a globally accessible directory. Not sure if Zadig could help here?I made some changes to the firmware directories with e497692 - after installing on my bare-bone virtual W7 the FW files were available, but due to problems with the virtual installation I could not check the USB installation/communication. I would appreciate it if someone could check on a real W7 and W10.
A big thank you to @justlep and @Maddo534 for testing!
The text was updated successfully, but these errors were encountered: