On 08/02/2016 05:05 AM, Mike Meyer wrote:
> I noticed that there really weren't very many options for dealing with
> analog files. Input is restricted to raw_analog and wav. Output is analog,
> csv, srzip and wav. That you can output csv but not input it seems truly
> odd. Sems like the analog options may be new enough not to have gotten a
> lot of love.

That's right, it's mostly a matter of nobody having sat down to do it.
I'd agree that not having both input and output of a format is a real shame.

> I've set about doing something about this. I've added analog output to
> gnuplot - mostly. The stream format can include frames that encompass
> multiple packets. I've written the code (well, cribbed it from
> output/csv.c) but can't test it - or at least can't find a way to test it,
> as it seems that the only way to generate such a stream is from one of the
> hardware drivers that does so.

That's what the demo driver is for. It generates analog streams as well
(sine waves and such), and can be configured to some extent.

This being sigrok however, any input will do: by the time it reaches an
output module, it doesn't matter whether the analog stream came from
hardware or a .WAV file.

If you're specifically looking for something that generates frame
markers, I think it's mostly only oscilloscope drivers that generate
those. But do you really need those for gnuplot output? That seems to me
like it should just generate a continuous stream.

> Next step (underway, but not in the repo) is input of csv analog values. I
> also plan on looking at adding analog to vcd write & read.

Great!

> The real goal is adding analog values to the protocol decoder API.

The broad plan was always to have a better transform framework in
libsigrok, which was capable of doing analog -> logic conversion. But
this got bogged down in some very determined and complete lack of
action. I still think this is the best place to do it, but code wins.


-- 
Bert Vermeulen
b...@biot.com

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

Reply via email to