Hi,

On Mon, Dec 29, 2014 at 06:29:30PM +0100, Mathias Katzer wrote:
>  I think I need some advice how data packets and multiple channels of a
> measurement  should be related.
> 
> I would like to be able to output the data from several analog
> oscilloscope channels belonging to one 'frame' ( acquired for the same
> trigger event, to my understanding ) into separate columns of a CSV file.
> 
> The hameg-hmo driver sends separate data packets for each channel. The
> csv output module ( not supporting analog yet ) immediately creates
> output when processing an incoming packet.
> 
> Should rather the device driver generate a 'multi channel' package from
> the beginning, or should the output module buffer data until all
> channels are complete ? Or should the buffering even happen somewhere in
> between ?

Generally drivers that need to emit multiple values that basically
belong together will emit potentially multiple packets but preceeded
by SR_DF_FRAME_BEGIN and succeeded by SR_DF_FRAME_END.

This is the case for pretty much all scopes, and also some other devices
that emit say two different measurement values that were sampled at
"exactly" the same time.

Anything beyond that is probably the job of the frontend, or in this
case of the CSV output module, IMHO.


Uwe.
-- 
http://hermann-uwe.de | http://randomprojects.org | http://sigrok.org

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to