On Wed, Feb 11, 2015 at 04:20:42PM +0100, Bartosz Golaszewski wrote: > Add a parameter to csv output module, which allows to specify the type > of data fed to it. By default the module assumes it receives logic data > for backwards compatibility. > > Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> > --- > Initially I thought it would be possible to work with both data types > simultaneously,
I also do think that it should be possible. > but since logic and analog packets can arrive at different > times and contain different number of samples it's not very feasible. Well, even if you limit yourself to ananlog only, packets from different channels can also arrive at different time and even different rate, so not mixing logic/analog do not solve this issue... You should always assume that each packet is at a different time (and hence a different CSV line), except for packets which are groupped in between SR_DF_FRAME_BEGIN/SR_DF_FRAME_END (all the packets inside a frame are supposed to start at the same time). This means you will often have only one column filled per line, but that's to be expected I think. Moreover, to make those CSV files really usable, at some point we will need to add a timestamp for each sample (some devices may output samples at very irregular point in time, even on a single channel). Aurel ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel