Hi all,

I made a short stereo chirp in Audacity, exported it as stereo .wav. Imported 
this into PulseView, which imported fine, and saved this as stereo.sr.

Then I tried opening stereo.sr in PulseView, and I exported it as a stereo.vcd 
file - the stereo.vcd file seems to be saved fine.

Note that this .vcd file has a line like `$scope module libsigrok $end` or 
similar, which will cause sigrok to print this, if you try loading that .vcd 
file:

sr: input/vcd: Skipping scope with application's package name: libsigrok

... so, I had to change that line to `$scope module top $end`.


However, if I then start a new PulseView session (PulseView 0.5.0-git-9d307c6, 
libsigrok 0.6.0-git-d7df9dc/4:0:0 (rt: 0.6.0-git-d7df9dc/4:0:0) on Windows 10), 
and I try importing this stereo.vcd, then PulseView just shuts down, without 
any error messages.


I have stored the stereo.sr and stereo.vcd files in this gist:

https://gist.github.com/sdbbs/1b7b4e91cae563f1f5de565d05d11515

I also tried opening the .vcd in sigrok-cli with the intent of exporting .sr 
from there - log messages indicate that the .vcd file is parsed by sigrok-cli, 
however the output .sr file is never created.

Since these are analog signals, I was suspecting that sigrok does not support 
analog data in .vcd - but the wiki seems to imply that it is supported:

https://sigrok.org/wiki/File_format:Vcd

Signals of the VCD "real" type map to analog sigrok channels. Precision 
handling currently is WIP.


So, can anyone explain what am I missing, in regards to importing a .vcd file 
with analog data in sigrok/PulseView?


Here's the log of running sigrok-cli on the .vcd file:

```
$ "C:\Program Files (x86)\sigrok\sigrok-cli\sigrok-cli.exe" -l 5 -i stereo.vcd 
-o stereoB.sr
sr: [00:00.000000] log: libsigrok loglevel set to 5.
sr: [00:00.000000] backend: libsigrok 0.6.0-git-d7df9dc/4:0:0.
sr: [00:00.000000] backend: Libs: glib 2.44.1 (rt: 2.44.1/4401:1), libzip 
1.5.2, libserialport 0.1.1/1:0:1 (rt: 0.1.1/1:0:1), libusb-1.0 1.0.20.11003-rc3 
API 0x01000104, hidapi 0.8.0-rc1, libftdi 1.4.
sr: [00:00.000000] backend: Host: x86_64-w64-mingw32.static.posix, 
little-endian.
sr: [00:00.000000] backend: SCPI backends: TCP, serial, USBTMC.
sr: [00:00.000000] backend: Firmware search paths:
sr: [00:00.019000] backend:  - C:\Users\user\AppData\Local\sigrok-firmware
sr: [00:00.019000] backend:  - C:\ProgramData\sigrok-firmware
sr: [00:00.019000] backend:  - C:\Users\Public\Documents\sigrok-firmware
sr: [00:00.019000] backend:  - C:\Program Files 
(x86)\sigrok\sigrok-cli\share\sigrok-firmware
sr: [00:00.019000] backend:  - C:\Program Files 
(x86)\sigrok\sigrok-cli\share\sigrok-firmware
sr: [00:00.019000] backend: Sanity-checking all drivers.
sr: [00:00.019000] backend: Sanity-checking all input modules.
sr: [00:00.019000] backend: Sanity-checking all output modules.
sr: [00:00.019000] backend: Sanity-checking all transform modules.
srd: libsigrokdecode loglevel set to 5.
sr: [00:00.024000] input: Trying module chronovu-la8.
sr: [00:00.024000] input: Trying module csv.
sr: [00:00.024000] input: Trying module trace32_ad.
sr: [00:00.024000] input: Trying module vcd.
sr: [00:00.026000] input: Module vcd matched, confidence 1.
sr: [00:00.026000] input: Trying module wav.
sr: [00:00.026000] input: Trying module logicport.
sr: [00:00.026000] input: Trying module saleae.
sr: [00:00.030000] input: Sending 2363921 bytes to vcd module.
sr: [00:00.031000] input/vcd: Section 'date', contents 'Thu Oct 22 18:10:51 
2020'.
sr: [00:00.032000] input/vcd: Section 'version', contents 'libsigrok 
0.6.0-git-d7df9dc'.
sr: [00:00.032000] input/vcd: Section 'comment', contents 'Acquisition with 2/2 
channels at 44.1 kHz'.
sr: [00:00.033000] input/vcd: Section 'timescale', contents '100 ns'.
sr: [00:00.033000] input/vcd: Samplerate: 10000000
sr: [00:00.034000] input/vcd: Section 'scope', contents 'module top'.
sr: [00:00.034000] input/vcd: $scope, got: "module top"
sr: [00:00.034000] input/vcd: $scope, prefix now: "top."
sr: [00:00.034000] input/vcd: Section 'var', contents 'real 64 ! CH1'.
sr: [00:00.034000] input/vcd: VCD signal 1 'top.CH1' ID '!' (size 1), sr type 
A, idx 0.
sr: [00:00.035000] input/vcd: Section 'var', contents 'real 64 " CH2'.
sr: [00:00.035000] input/vcd: VCD signal 2 'top.CH2' ID '"' (size 1), sr type 
A, idx 1.
sr: [00:00.036000] input/vcd: Section 'upscope', contents ''.
sr: [00:00.036000] input/vcd: $upscope, prefix now: ""
sr: [00:00.036000] input/vcd: Section 'enddefinitions', contents ''.
sr: [00:00.036000] input/vcd: sigrok channel idx 0, name top.CH1, type A, en 1.
sr: [00:00.036000] input/vcd: sigrok channel idx 1, name top.CH2, type A, en 1.

$ ls -la stereoB.sr
ls: cannot access 'stereoB.sr': No such file or directory
```












_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to