Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems running calibration file #13

Closed
vyacheslavkovtun97 opened this issue Mar 6, 2022 · 3 comments
Closed

Problems running calibration file #13

vyacheslavkovtun97 opened this issue Mar 6, 2022 · 3 comments
Labels
stale The TO is probably no longer interested in a solution Windows Windows related, wontfix unless a volunteer steps in

Comments

@vyacheslavkovtun97
Copy link

Hello!

Unable to run calibration file on Windows.
Perform everything according to the instructions:

  • Installed by Python 3.8.9;
  • Extract libusb-1.0.dll from the zip file into {Python install dir};
  • Installed Hantek6022API using the "setup.py install" command.

I started calibration.py and got errors (I attach screenshots).
How to fix it?
image

image

@Ho-Ro Ho-Ro added the Windows Windows related, wontfix unless a volunteer steps in label Mar 7, 2022
@vyacheslavkovtun97
Copy link
Author

vyacheslavkovtun97 commented Mar 14, 2022

Everything work with version 2.09 OpenHantek6022API.
2.09 is the latest stable version for Windows.
Versions 2.09.1 ​​and higher issue errors after running setup.py.

Instructions for running on Windows:

  1. Install Python version 3.8.10 or earlier from here.
  2. Copy the libusb-1.0.dll file from the folder where OpenHantek.exe is located to the folder where python.exe is located.
  3. Download and unzip Hantek6022API v2.09 from here.
  4. Run Command Prompt (cmd.exe) as an administrator.
  5. Go to the Hantek6022API-2.09 directory where setup.py is located with the cd command.
    Example:
cd C:\Users\User\Desktop\Hantek6022API-2.09
  1. Run the installation with the command:
setup.py install
  1. If the installation was successful, then after entering the command
pip freeze

in the list of installed packages should be:

libusb1
python-hantek-6022be-wrapper
  1. Start OpenHantek and connect the oscilloscope to the USB port. After starting the program, you must close it.
  2. Run the Command Prompt in the folder \Hantek6022API-2.09\examples.
  3. Run the calibration with the command:
calibrate_6022.py
  1. Follow the instructions of the program.

@Ho-Ro
Copy link
Owner

Ho-Ro commented Mar 14, 2022

Maybe you do not need to install something (apart from a working python libusb support). Please try the Linux approach:

You can even use the programs without installing anything. You just need a working python3-libusb installation.
All you need is the PyHT6022 directory in the directory where your Python program is located (e.g. in examples).
This means: download this repo (as https://github.com/Ho-Ro/Hantek6022API/archive/refs/heads/main.zip
or with git clone https://github.com/Ho-Ro/Hantek6022API.git), go to examples and try e.g. python3 get_serial_number.py.

OpenHantek has also a new function that allows to calibrate the offset error and store the calibration, mainly to make it easier for Windows users - please check.

@Ho-Ro
Copy link
Owner

Ho-Ro commented Mar 21, 2022

@vyacheslavkovtun97 Please check 2.10.3

@Ho-Ro Ho-Ro added the stale The TO is probably no longer interested in a solution label Apr 1, 2022
@Ho-Ro Ho-Ro closed this as completed Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale The TO is probably no longer interested in a solution Windows Windows related, wontfix unless a volunteer steps in
Projects
None yet
Development

No branches or pull requests

2 participants