OpenHantek / openhantek

OpenHantek is a DSO software for Hantek (Voltcraft/Darkwire/Protek/Acetech) USB digital signal oscilloscopes
http://openhantek.org/
GNU General Public License v3.0
763 stars 199 forks source link

Export CSV not working #278

Open reactiff opened 5 years ago

reactiff commented 5 years ago

First of all thank you for building this. I was so frustrated with the software my Hantek 6022 came with that I wanted to smash the damn thing. Good thing I googled for alternative options and came across this repo.

So I downloaded the Windows Build. I didn't want to compile it and just wanted to see if that would work. Ultimately I had to download the driver, modify the INF file and reboot Windows with signed driver enforcement turned off. I got it to work.

The most important thing that I am happy about is how relatively responsive the screen is. The graph updates much better, in near real time for me even at the highest resolution.

After playing around with different settings and controls I finally figured out how I want to use it.

There are a few things that need work but they are nice to haves. The most critical thing is that I cannot export data in CSV. The Export CSV menu item does'nt do anything when the scope is not running. Once you hit run it clears the buffer. The exported file numbers that are idle, no signals present. The Single Trigger mode stops as soon as you hit run. But even if I can capture a fraction of a second of data between the time I hit run and it stops, the saved file still contains no signal data.

P.S. I was able to export data files with the original software the scope came with, but i had to uninstall the native driver so I can't use that anymore.

I really really want to continue using your app. Please advise as to how I can export the data successfully.

Thanks, Rick

dendvz commented 5 years ago

Hi Rick,

The actual 'Export CSV' behavior is 'Capture the next sample and export to CSV'. Workaround for your issue is quite simple: 1) Change trigger mode to Single 2) Press 'Run' 3) Select 'Export' -> 'Export CSV' (nothing happens so far) 4) Press 'Run' (now the 'Export file...' dialog pops up)

Maybe OpenHantek behaves differently on Windows, but I have managed to capture the signals into CSV. demo

Ho-Ro commented 5 years ago

I have a simple patch in my fork to keep the scope responsible when sampling is paused.