Re: Scanning different channels in continuous mode

When I used cfc_read_array_from_buffer(), I was indead wanting to use 
some equivalent of user-space read(). Now, when I use 
cfc_read_array_from_buffer() with the event stuff stripped out (I 
removed the line "async->events |= COMEDI_CB_BLOCK;"), I still have the 
same problem.

I am using a PCI-MIO board with DMA disabled.

Do you have any other suggestion for this problem?

Thanks,

Wim


Frank Mori Hess wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Wednesday 05 February 2003 07:19 am, Wim Meeussen wrote:
> 
>>First I initialise a continuous scan (0.5 Hz). I registered a callback
>>function (CB_EOF) so an interrupt occures after each scan. In the
>>callback function I read the comedi buffer using the
>>cfc_read_array_from_buffer(..) function.
> 
> 
> cfc_read_array_from_buffer() was written to be used by a driver doing output. 
>  I suppose it might work for what you are doing, although it will at least 
> generate bogus end of scan and block events.  I suppose what you are wanting 
> to use is some equivalent of user-space read() implemented in kcomedilib.  It 
> would probably be pretty easy to implement, since it would basically be 
> cfc_read_array_from_buffer() with the event stuff stripped out.
> 
> - -- 
> Frank
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
> 
> iD8DBQE+QXXP5vihyNWuA4URAjPOAJ9uypO4Zqvw/CndoIy7og+CQcMufwCguMcm
> ZGAdjp6KTdC6/qLKMCK7jIs=
> =qTZZ
> -----END PGP SIGNATURE-----
> 
> 

Received on 2003-02-06Z09:29:16