Created attachment 326 [details]
Sample csv output.
CSV output adds 'analog' output to top of file.
Tested on latest git versions on both my Pi and Windows machines (compiled myself and nightly builds, respectively).
Test device: Hantek 6022be.
; CSV generated by libsigrok 0.6.0-git-393375e
; from Hantek 6xxx on Wed Sep 06 18:17:39 2017
; Channels (2/2): CH1, CH2
; Samplerate: 100 kHz
CH1: 2.19 V
CH1: 2.15 V
CH1: 2.15 V
CH1: 0.72 V
Sample csv attached.
The issue is worse. The analog channel will not reliably be added to the
top of the output, it's rather that multiple analog channels as well as
mixed signals (digital and analog at the same time) will occur in arbitrary
interleaved ways, and won't be ordered appropriately at all. According to
inline comments, the current version implements some assumptions that don't
*** Bug 1161 has been marked as a duplicate of this bug. ***
*** Bug 1131 has been marked as a duplicate of this bug. ***
Any news on this issue?
this issue is still present (0.8.0-git-0e2f95c) and affects also released versions (0.5.2)
(In reply to sigrok from comment #5)
> this issue is still present (0.8.0-git-0e2f95c)
I meant 0.6.0-git-d7df9dc7
Sure, and this status won't change as long as nobody is working on that
subject. It's apparent that none of those who use the CSV output feature
got enough interest to do something about the known issue. Want to help?
Lend a hand! Or wait until somebody else starts acting. See comment 1,
the current implementation is incomplete, and needs some love.
Have committed something in 98b7b0895659 to eliminate the unexpected
screen output with fallback data in the CSV output text. Which addresses
this report here in its strictest sense, but does not address the issues
mentioned in comment 1.
Have decided to create a separate report in bug 1592 for the remaining lack
of support for some combinations of input data. Am closing this bug 1026.