Re: buffer overflow

On Mon, Oct 28, 2002 at 06:16:27PM +0100, FAUX Emmanuel wrote:
> Hi,
> 
> I am writing a data acquisition piece of software using comedi-0.7.65, 
> comedilib-0.7.19 and a NI-6034E.
> 
> I went through the examples and I saw that I could use demo/cmd.c 
> almost as is. ( great... )
> 
> So I played with it, modified the frequency, channels etc.... and it 
> worked fine. I could get the data I wanted from the board.
> 
> But now when I launch cmd I get some data and ....
> 
> read: Input/output error
> 
> and in /var/log/message : debian kernel : comedi : buffer overflow
> 
> Well, actually, I have been using it for a while, and this is only now 
> that this problem occurs.

The default Comedi buffer is a bit small, and it's pretty common
to completely fill it.  You can change the size using the
--read-buffer option to comedi_config.



dave...

Received on 2002-10-28Z19:10:48