Uwe Hermann
50959ddcdc
gnuplot output: Optimize by only storing changes.
...
Only output new lines in gnuplot output if there have been changes in
the samples (similar to what VCD does). As long as the first and last
sample are output, the resulting plot looks OK.
This reduces the size of the output file from roughly 200MB to just 60KB
in one specific test setup (depends on the number of probes and on the
signal, of course). The time and CPU load required to generate the gnuplot
output and the resulting plot (PNG or other) is also drastically reduced
from multiple minutes to roughly 30 seconds (again, depends on various
things).
Thanks Ken Mobley of ChronoVu for the report.
2011-04-15 21:49:22 +02:00
Uwe Hermann
b08024a836
libsigrok: Introduce sr_dbg/sr_info/sr_warn/sr_err.
...
We should use these (internal) functions in libsigrok exclusively from
now on, i.e. no more use of glib's g_debug() etc.
These functions are only for libsigrok, the frontends use whatever
logging mechanism is suitable there.
2011-04-14 10:11:08 +02:00
Uwe Hermann
20ebd1fe1d
gnuplot output: More error checks.
2011-04-10 23:03:34 +02:00
Uwe Hermann
cdb3573ceb
input/output formats: s/extension/id/.
...
The struct entry 'extension' is not really a (filename) extension, but
rather a unique ID used for input or output formats, e.g. in the sigrok
CLI or GUI interface. Thus, rename it accordingly.
2011-04-10 23:03:34 +02:00
Uwe Hermann
d494a4aa9d
input/output formats: Explicit struct member names.
...
This makes it immediately clear what an entry is supposed to be, no
need to look it up in some header file.
2011-04-10 23:03:33 +02:00
Uwe Hermann
d078d2e5f3
Make some more items 'static'.
2011-03-03 20:24:25 +01:00
Uwe Hermann
9688b443f6
Add SR_ prefix for MAX_NUM_PROBES/MAX_PROBENAME_LEN.
2011-02-20 21:16:26 +01:00
Uwe Hermann
54ac5277c5
Constify some more 'char *' parameters.
2011-02-20 21:16:26 +01:00
Uwe Hermann
809c5f2011
Add sr_ prefix for analog stuff some structs.
2011-02-20 21:16:24 +01:00
Uwe Hermann
77b454421a
Disable analog bits/gnuplot output for now.
2011-02-20 21:16:20 +01:00
Uwe Hermann
2bf4aca64a
Add sr_ prefix for device related API functions.
2011-02-08 22:28:02 +01:00
Uwe Hermann
1afe89897c
Add sr_ prefix for 'struct probe'.
2011-02-08 22:27:58 +01:00
Bert Vermeulen
3a28509817
don't just assume a device has a samplerate setting
2011-02-01 02:33:54 +01:00
Uwe Hermann
5a2326a71b
SR_ prefix for all public enums.
2011-01-30 18:32:59 +01:00
Uwe Hermann
a00ba01228
Change all sigrok_ prefixes to sr_.
2011-01-30 18:32:55 +01:00
Uwe Hermann
f50f3f40d9
Add sr_ prefix to input/output structs.
2011-01-30 18:32:54 +01:00
Uwe Hermann
e46b8fb154
Change SIGROK_ prefix to SR_.
2011-01-30 18:32:53 +01:00
Uwe Hermann
ff35879bb7
Fix some compiler warnings.
2011-01-27 23:17:47 +01:00
Daniel Ribeiro
81bbdf6a6a
add incomplete DF_ANALOG support to output_gnuplot.c
...
RAW->Voltage conversion is not implemented yet, its hardcoded for
signed 16bit conversion.
2011-01-21 16:11:44 -02:00
Bert Vermeulen
9ab95e5408
make output modules a bit more crashproof
...
the event handler in output modules is now optional.
2011-01-13 07:55:35 +01:00
Bert Vermeulen
f0411b1d17
output modules now register the DF type they can use
2011-01-09 23:23:56 +01:00
Bert Vermeulen
d4ae8eaa7c
fix buffer size, various error checks
2011-01-08 15:50:14 +01:00
Uwe Hermann
757b8c628a
Cosmetics, whitespace, simplifications.
...
Reduce code nesting a bit, constify some strings.
2011-01-08 01:49:47 +01:00
Uwe Hermann
fbe2f7945d
VCD: Optimizations and fixes.
2010-05-09 22:06:30 +02:00
Uwe Hermann
086eac7c7b
VCD/Gnuplot: Fix incorrect sample counter.
2010-05-09 22:06:30 +02:00
Uwe Hermann
114fb93f67
Gnuplot: Nicer output formatting.
2010-05-09 22:06:30 +02:00
Uwe Hermann
5f8c4cb363
Gnuplot: Improve column/probe name display.
...
This fixes incorrect probe name display if the user explicitly named
probes via '-p 1=CLK' etc.
2010-05-09 22:06:29 +02:00
Uwe Hermann
caf62e22c4
output_gnuplot: Simplify event().
2010-05-09 22:06:28 +02:00
Uwe Hermann
1e32053cd0
Gnuplot quickfix: Increase malloc()'ed size.
2010-05-09 22:06:28 +02:00
Uwe Hermann
5cca9adbf2
VCD/Gnuplot: Store time/date in output.
2010-05-09 22:06:28 +02:00
Uwe Hermann
607b58de58
VCD/Gnuplot: Cosmetics, code simplifications.
2010-05-09 22:06:27 +02:00
Uwe Hermann
a821069b34
Gnuplot output: More error handling.
2010-05-09 22:06:27 +02:00
Bert Vermeulen
7aae74622e
output: if device has no plugin, don't report samplerate
2010-05-07 23:52:48 +02:00
Håvard Espeland
e273a9040e
Output: Fix invalid pointer dereferencing in vcd and gnuplot.
2010-05-04 19:44:39 +02:00
Uwe Hermann
99c1fc59ed
output: Coding style fixes.
2010-04-15 20:36:04 +02:00
Uwe Hermann
afc8e4deb6
Fix all warnings and re-enable -Wextra.
2010-04-09 22:18:46 +02:00
Uwe Hermann
25e7d9b115
Factor out common sigrok_samplerate_string().
2010-04-07 20:13:57 +02:00
Uwe Hermann
e2ad47b5b0
Gnuplot output format support.
2010-04-06 16:54:37 +02:00