OpenHantek / OpenHantek6022

OpenHantek6022 is a DSO software for Hantek USB digital signal oscilloscopes 6022BE / BL. Development OS is Debian Linux, but the program also works on FreeBSD, MacOS, RaspberryPi and Windows. No support for non-Linux related issues unless a volunteer steps in!
GNU General Public License v3.0
868 stars 153 forks source link

Timebase wrong, and changes depending on # of channels collected #73

Closed fovea1959 closed 4 years ago

fovea1959 commented 4 years ago

Describe the bug Depending on the timebase and samplerate, the timebase and frequencies appear to be off, and the error changes based on whether 1 or 2 channels are collected.

To Reproduce

Expected behavior Expect a cycle of 60Hz to take an indicated 16.7ms, and not change if the number of channels collected changes.

Screenshots See above.

Computer environment (please complete the following information):

Scope device (please complete the following information):

Additional context No console output is printed.

Ho-Ro commented 4 years ago

Strange, I cannot reproduce your observation, please see my screen shot with 60 Hz calibration: image I can change sample rate / time base and everything stays consistent, now CH2 with German 50 Hz from wire in my hand :) : image But as I'm heading for a new stable release I'll double check this behaviour.

fovea1959 commented 4 years ago

I unplugged the Hantek and plugged into a different USB port (I realized it was on the same bus as another not-in-use HS devices (webcam). Problem went away.

Moved back to same bus as webcam, problem came back.

Don't know if you want to close this, or put something in to detect the situation.

Ho-Ro commented 4 years ago

In the past we had sometimes the situation that the device detection failed if on a shared bus with other HS devices, but I had never a timing failure. The reason could be the bulk transfer with no guaranteed bandwidth, if the bus is congested, packets are dropped. So it is important not to share the bus and don't use hubs.