Bug 1161

Summary: Analog I channel output is always present for KORAD CSV output format and sample number is always 0.
Product: libsigrok Reporter: HoracioDos <rosendeh>
Component: Output: csvAssignee: Nobody <nobody>
Status: RESOLVED DUPLICATE    
Severity: normal CC: uwe
Priority: Normal    
Version: 0.5.0   
Target Milestone: ---   
Hardware: x86   
OS: Linux   

Description HoracioDos 2018-04-13 15:32:46 CEST
Hello!
Analog I channel output is always present for KORAD CSV output format and sample number is always 0. 
Example 1:
sigrok-cli  --driver=korad-kaxxxxp:conn=/dev/ttyACM0 --channels V --samples 3 -o readings.log -O csv
Output:
; CSV generated by libsigrok 0.6.0-git-d4b3f44
; from Korad KAxxxxP on Fri Apr 13 10:28:12 2018
; Channels (1/2): V
I: 0 mA
samples,V DC
0,3
I: 0 mA
0,3
I: 0 mA
0,3
Example 2
sigrok-cli  --driver=korad-kaxxxxp:conn=/dev/ttyACM0 --channels V,I --samples 3 -o readings.log -O csv
Output 2:
; CSV generated by libsigrok 0.6.0-git-d4b3f44
; from Korad KAxxxxP on Fri Apr 13 10:30:55 2018
; Channels (2/2): V, I
I: 0 mA
samples,V DC,A
0,3,0
I: 0 mA
0,3,0
I: 0 mA
0,3,0

Thanks in advance!
Comment 1 Uwe Hermann 2018-04-21 15:57:27 CEST
Thanks! I think you're hitting two already reported bugs at once here. One is #941 (sample number always 0) and the other is #1026 (analog output format is always emitted, but it shouldn't; this will be fixed soon).

Closing this bug, marking as duplicate for now.

*** This bug has been marked as a duplicate of bug 1026 ***