Ho-Ro / Hantek6022API

Hantek 6022BE Python API for Windows and Linux.
https://ho-ro.github.io/Hantek6022API/
Other
98 stars 15 forks source link

10bit support #4

Closed cbxbiker61 closed 4 years ago

cbxbiker61 commented 4 years ago

Just wondering if you may have an idea how to get this software to support 10bit mode on the 6022. I see that the Hscope Android app can put the 6022 into a 10bit mode. It would be particularly nice in the PyQt5 app I'm building. This is an app that does an engine relative compression test using the CC-650 amp clamp. 10bit mode would give my app much better accuracy.

BTW, thanks for supporting the 6022 with Python. I expect that I'll be using it quite a bit in the future.

Ho-Ro commented 4 years ago

Hi, as the analog/digital converter in Hantek6022 is only 8 bit (it's an AD9288), see also last page of my User Manual, I can only think of oversampling to get a better resolution, a trick that I also use in OpenHantek6022. Each 4 x oversampling gives 1 bit more of resolution, so 4x -> 9bit, 16x -> 10bit, 64x -> 11 bit, 256x -> 12bit at your choice, -> see this application note AN118. I use this also in the calibration example to get "sub-sample" offset correction, see also the README.

cbxbiker61 commented 4 years ago

OK, I had already integrated 10x oversampling in the code, since I'm working with low frequency signals and needed to "slow" the signal data down anyway. I just got a decent trace off my Dodge Ram after I built an adapter with a 0.1uF cap in it to isolate the AC signal and the capture looks useful.