carlos-jenkins / csv2vcd

Signal analyzer CSV to IEEE 1364-2001 VCD file format converter.
Apache License 2.0
11 stars 11 forks source link

Support for csv format saved by keysight scopes #3

Open jahagirdar opened 7 years ago

jahagirdar commented 7 years ago

The following are the first few lines of the csv file generated by keysight The first column is the time and the second is the signal value....


x-axis,TX1
second,Volt
-113.431850E-03,+4.938284392E+00
-113.428650E-03,+4.953974769E+00
-113.425450E-03,+4.953974769E+00
-113.422250E-03,+4.953974769E+00
-113.419050E-03,+4.902719540E+00
-113.415850E-03,+4.835773935E+00

When I try parsing the above csv I get the following message python.exe csv2vcd\bin\csv2vcd.real scope_0.csv scope_0.vcd ERROR: Breakpoint "0 s" not found.

carlos-jenkins commented 7 years ago

This is caused when the script is unable to find time 0 (or the beginning) of the signal in the time column.

https://github.com/carlos-jenkins/csv2vcd/blob/master/bin/csv2vcd#L134

jahagirdar commented 7 years ago

If I write a script to rewrite the log with a timeshift such that the first measurement starts at time 0 instead of -113E-03 can csv2vcd.real parse this format?