- From: Heinrich du Toit <heinrichdt_at_tlabs.ac.za>
- Date: Mon, 08 Oct 2007 15:07:34 +0200
I tried another trick:
To rather not fill the buffer up to full.
if ((inbuffer < sysconf(_SC_PAGE_SIZE)*2)){
result = write(cDeviceNr,(void*)(dataoutp
+dataoutpos),dataoutsize-dataoutpos);
}
But this froze my PC :(
On Mon, 2007-10-08 at 14:54 +0200, Heinrich du Toit wrote:
> Hi
>
> Firstly does ni_pcimio support the set_buffer_size and
> set_max_buffer_size commands?
>
> If it does how do I use it?
>
> Then secondly is there a way to flush the output data.
>
> Because it works like this.
> We are always trying to keep the buffer updated with data. That means
> there is likely to be about 64K of data in the buffer.
>
> Now we want to change the data we are writing. The problem is we have to
> wait for that other 64K to write out before the output changes :(
> Is there any way to help this?
> like a way to flush the output from the buffers and start fresh?
>
> thanx
> -H
>
>
> _______________________________________________
> comedi mailing list
> comedi_at_comedi.org
> https://mail.comedi.org/cgi-bin/mailman/listinfo/comedi
Received on 2007-10-08Z12:07:34