Re: How to get the sampled values on asynchronous aquisition (kernel space)

Use the following functions: comedi_get_buffer_offset,
comedi_get_buffer_contents, comedi_mark_buffer_read.
Search on the comedi list archives; this question has been already answered.
Regards,

Andrés


> Message: 2
> Date: Mon, 18 Jul 2005 23:40:05 -0300 (ART)
> From: Pecenin <mpecenin_at_yahoo.com.br>
> Subject: How to get the sampled values on asynchronous aquisition (kernel
space)
> To: comedi_at_comedi.org
>
> Hello,
>
> I need write a 2.6.7 kernel module (with real-time
> support) that use a ni-atmio-16de-10 board to sample a
> signal at 6000Hz (infinite sequence of acquisitions).
>
> I see in Comedilib Reference how to configure the
> board to asynchronous acquisition, using comedi_cmd
> struct, and also run the real-time example (and other
> examples) on the download area, but I do not
> understand how to get samples (sampled values). What
> function I need to use? How I manager the buffer?
> etc...
>
> Someone could help-me, please!
>
> Someone have an example, for kernel-space with
> asynchronous acquisition, that just "print" the values
> (samples) with an infinite sequence of acquisitions.
>
> Thanks for any help!
>
> Sorry, english is not my native language.
>
> Pecenin

Received on 2005-07-19Z13:23:43