Re: streaming buffer question

On Tue, Nov 12, 2002 at 02:31:40PM -0700, Jim Benson wrote:
> I'm thinking that the streaming buffer is an comedi
> internal buffer. comedi_get_max_buffer_size 
> returns 2^16...so i'm guessing that that really
> is a maximum size...without changing some index
> counter to more than 16 bits.

This would be an inaccurate guess.  See the man page for
comedi_config.

> If i read say the first 500 bytes and then mark that
> read as read with comedi_mark_buffer_read...

Don't do this.  Just read() the samples as if it were a file
or network socket.  See the demo/cmd.c example.



dave...

Received on 2002-11-12Z21:58:55